/** * Translates this line segment by {@code distanceToShift} along the vector perpendicular to this * line segment's direction and pointing to the right. * <p> * Note that the length and direction of this line segment remains unchanged. * </p> * * @param distanceToShift the distance to shift this line segment. */ default void shiftToRight(double distanceToShift) { shift(false, distanceToShift); }
/** * Translates this line segment by {@code distanceToShift} along the vector perpendicular to this * line segment's direction and pointing to the left. * <p> * Note that the length and direction of this line segment remains unchanged. * </p> * * @param distanceToShift the distance to shift this line segment. */ default void shiftToLeft(double distanceToShift) { shift(true, distanceToShift); }