/** * 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(FrameVector2DReadOnly lineDirection) { checkReferenceFrameMatch(lineDirection); Line2DBasics.super.setDirection(lineDirection); }
/** * 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); Line2DBasics.super.setDirection(lineDirection); }
/** * 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(FramePoint2DReadOnly pointOnLine) { checkReferenceFrameMatch(pointOnLine); Line2DBasics.super.setPoint(pointOnLine); }
/** * 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); Line2DBasics.super.setPoint(pointOnLine); }
/** * 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, Point2DReadOnly firstPointOnLine, Point2DReadOnly secondPointOnLine) { checkReferenceFrameMatch(referenceFrame); set(firstPointOnLine, secondPointOnLine); }
/** * Sets this line to be the same as the given line projected onto the XY-plane. * * @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); }
/** * 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 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); }
/** * Sets this line to go through the endpoints of the given line segment projected on the * XY-plane. * * @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); }
/** * Sets this line to be the same as the given line. * * @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 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, Point2DReadOnly pointOnLine, Vector2DReadOnly lineDirection) { checkReferenceFrameMatch(referenceFrame); set(pointOnLine, 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); }
/** * 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); }
/** * Redefines this line with a new point and a new direction vector. * * @param referenceFrame the reference frame in which the given coordinates are expressed. * @param pointOnLineX the new x-coordinate of the point on this line. * @param pointOnLineY the new y-coordinate of the point on this line. * @param lineDirectionX the new x-component of the direction of this line. * @param lineDirectionY the new y-component of the direction of this line. * @throws ReferenceFrameMismatchException if {@code this.getReferenceFrame()} and * {@code referenceFrame} are not the same reference frame. */ default void set(ReferenceFrame referenceFrame, double pointOnLineX, double pointOnLineY, double lineDirectionX, double lineDirectionY) { checkReferenceFrameMatch(referenceFrame); set(pointOnLineX, pointOnLineY, lineDirectionX, lineDirectionY); }