/** * Sets this line to be the same as the given line. * * @param referenceFrame the reference frame in which the given line is expressed. * @param line3DReadOnly the line to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, Line3DReadOnly line3DReadOnly) { checkReferenceFrameMatch(referenceFrame); set(line3DReadOnly); }
/** * Changes the point through which this line has to go. * * @param pointOnLine new point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code pointOnLine} are not expressed * in the same reference frame. */ default void setPoint(FramePoint3DReadOnly pointOnLine) { checkReferenceFrameMatch(pointOnLine); Line3DBasics.super.setPoint(pointOnLine); }
/** * Changes the direction of this line by setting it to the normalized value of the given vector. * * @param lineDirection new direction of this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code lineDirection} are not * expressed in the same reference frame. */ default void setDirection(FrameVector3DReadOnly lineDirection) { checkReferenceFrameMatch(lineDirection); Line3DBasics.super.setDirection(lineDirection); }
/** * Redefines this line with a new point and a new direction vector. * * @param referenceFrame the reference frame in which the given arguments are expressed. * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, Point3DReadOnly pointOnLine, Vector3DReadOnly lineDirection) { checkReferenceFrameMatch(referenceFrame); set(pointOnLine, lineDirection); }
/** * Sets this line to go through the endpoints of the given line segment. * * @param referenceFrame the reference frame in which the given line segment is expressed. * @param lineSegment3DReadOnly the line segment to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, LineSegment3DReadOnly lineSegment3DReadOnly) { checkReferenceFrameMatch(referenceFrame); set(lineSegment3DReadOnly); }
/** * Redefines this line such that it goes through the two given points. * * @param referenceFrame the reference frame in which the given arguments are expressed. * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, Point3DReadOnly firstPointOnLine, Point3DReadOnly secondPointOnLine) { checkReferenceFrameMatch(referenceFrame); set(firstPointOnLine, secondPointOnLine); }
/** * Sets this line to be the same as the given line. * <p> * After calling this method this line is in the XY-plane. * </p> * * @param referenceFrame the reference frame in which the given line is expressed. * @param line2DReadOnly the line to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, Line2DReadOnly line2DReadOnly) { checkReferenceFrameMatch(referenceFrame); set(line2DReadOnly); }
/** * Redefines this line such that it goes through the two given points. * <p> * After calling this method this line is in the XY-plane. * </p> * * @param referenceFrame the reference frame in which the given arguments are expressed. * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, Point2DReadOnly firstPointOnLine, Point2DReadOnly secondPointOnLine) { checkReferenceFrameMatch(referenceFrame); set(firstPointOnLine, secondPointOnLine); }
/** * Sets this line to go through the endpoints of the given line segment. * <p> * After calling this method this line is in the XY-plane. * </p> * * @param referenceFrame the reference frame in which the given line segment is expressed. * @param lineSegment2DReadOnly the line segment to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, LineSegment2DReadOnly lineSegment2DReadOnly) { checkReferenceFrameMatch(referenceFrame); set(lineSegment2DReadOnly); }
/** * Redefines this line with a new point and a new direction vector. * <p> * After calling this method this line is in the XY-plane. * </p> * * @param referenceFrame the reference frame in which the given arguments are expressed. * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, Point2DReadOnly pointOnLine, Vector2DReadOnly lineDirection) { checkReferenceFrameMatch(referenceFrame); set(pointOnLine, lineDirection); }