Calculating reflected endpoints