/** * Changes the second endpoint of this line segment. * * @param secondEndpoint new second endpoint of this line segment. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code secondEndpoint} are not * expressed in the same reference frame. */ default void setSecondEndpoint(FramePoint2DReadOnly secondEndpoint) { setSecondEndpoint(secondEndpoint.getReferenceFrame(), secondEndpoint); }
/** * Changes the second endpoint of this line segment. * * @param secondEndpoint new second endpoint of this line segment. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code secondEndpoint} are not * expressed in the same reference frame. */ default void setSecondEndpoint(FramePoint3DReadOnly secondEndpoint) { setSecondEndpoint(secondEndpoint.getReferenceFrame(), secondEndpoint); }