/** * Redefines this line with a new point and a new direction vector. * * @param pointOnLine new point on this line. Not modified. * @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 set(Point2DReadOnly pointOnLine, FrameVector2DReadOnly lineDirection) { set(lineDirection.getReferenceFrame(), pointOnLine, lineDirection); }
/** * Redefines this line such that it goes through the two given points. * * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code firstPointOnLine} are not * expressed in the same reference frame. */ default void set(FramePoint3DReadOnly firstPointOnLine, Point3DReadOnly secondPointOnLine) { set(firstPointOnLine.getReferenceFrame(), firstPointOnLine, secondPointOnLine); }
/** * Redefines this line with a new point and a new direction vector. * * @param pointOnLine new point on this line. Not modified. * @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 set(Point3DReadOnly pointOnLine, FrameVector3DReadOnly lineDirection) { set(lineDirection.getReferenceFrame(), pointOnLine, lineDirection); }
/** * Redefines this line such that it goes through the two given points. * * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code firstPointOnLine} are not * expressed in the same reference frame. */ default void set(FramePoint2DReadOnly firstPointOnLine, Point2DReadOnly secondPointOnLine) { set(firstPointOnLine.getReferenceFrame(), firstPointOnLine, secondPointOnLine); }
/** * Sets this line to be the same as the given line. * * @param referenceFrame the reference frame in which the given line is expressed. * @param other the line to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code other} are not expressed in * the same reference frame. */ default void set(FrameLine2DReadOnly other) { set(other.getReferenceFrame(), other); }
/** * Sets this line to be the same as the given line projected onto the XY-plane. * * @param frameLine3DReadOnly the line to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code frameLine3DReadOnly} are * not expressed in the same reference frame. */ default void set(FrameLine3DReadOnly frameLine3DReadOnly) { set(frameLine3DReadOnly.getReferenceFrame(), frameLine3DReadOnly); }
/** * Redefines this line such that it goes through the two given points. * * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code secondPointOnLine} are not * expressed in the same reference frame. */ default void set(Point2DReadOnly firstPointOnLine, FramePoint2DReadOnly secondPointOnLine) { set(secondPointOnLine.getReferenceFrame(), firstPointOnLine, secondPointOnLine); }
/** * 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 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); }
/** * 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 from the given {@code frameLineSegment2DReadOnly}. * * @param frameLineSegment2DReadOnly the line segment to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code frameLineSegment2DReadOnly} * are not expressed in the same reference frame. */ default void set(FrameLineSegment2DReadOnly frameLineSegment2DReadOnly) { set(frameLineSegment2DReadOnly.getReferenceFrame(), frameLineSegment2DReadOnly); }
/** * Sets this line from the given {@code frameLineSegment3DReadOnly}. * * @param frameLineSegment3DReadOnly the line segment to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code frameLineSegment3DReadOnly} * are not expressed in the same reference frame. */ default void set(FrameLineSegment3DReadOnly frameLineSegment3DReadOnly) { set(frameLineSegment3DReadOnly.getReferenceFrame(), frameLineSegment3DReadOnly); }
/** * Redefines this line with a new point and a new direction vector. * * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code pointOnLine} are not * expressed in the same reference frame. */ default void set(FramePoint2DReadOnly pointOnLine, Vector2DReadOnly lineDirection) { set(pointOnLine.getReferenceFrame(), pointOnLine, lineDirection); }
/** * Redefines this line with a new point and a new direction vector. * * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code pointOnLine} are not * expressed in the same reference frame. */ default void set(FramePoint3DReadOnly pointOnLine, Vector3DReadOnly lineDirection) { set(pointOnLine.getReferenceFrame(), pointOnLine, lineDirection); }
/** * Redefines this line such that it goes through the two given points. * * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code secondPointOnLine} are not * expressed in the same reference frame. */ default void set(Point3DReadOnly firstPointOnLine, FramePoint3DReadOnly secondPointOnLine) { set(secondPointOnLine.getReferenceFrame(), firstPointOnLine, secondPointOnLine); }
/** * 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); }
/** * Redefines this line such that it goes through the two given points. * * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this}, {@code firstPointOnLine}, * {@code secondPointOnLine} are not expressed in the same reference frame. */ default void set(FramePoint2DReadOnly firstPointOnLine, FramePoint2DReadOnly secondPointOnLine) { firstPointOnLine.checkReferenceFrameMatch(secondPointOnLine); set(firstPointOnLine.getReferenceFrame(), firstPointOnLine, secondPointOnLine); }
/** * Redefines this line with a new point and a new direction vector. * * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this}, {@code pointOnLine}, * {@code lineDirection} are not expressed in the same reference frame. */ default void set(FramePoint2DReadOnly pointOnLine, FrameVector2DReadOnly lineDirection) { pointOnLine.checkReferenceFrameMatch(lineDirection); set(pointOnLine.getReferenceFrame(), pointOnLine, lineDirection); }
/** * Redefines this line with a new point and a new direction vector. * * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this}, {@code pointOnLine}, * {@code lineDirection} are not expressed in the same reference frame. */ default void set(FramePoint3DReadOnly pointOnLine, FrameVector3DReadOnly lineDirection) { pointOnLine.checkReferenceFrameMatch(lineDirection); set(pointOnLine.getReferenceFrame(), pointOnLine, lineDirection); }
/** * Redefines this line such that it goes through the two given points. * * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code secondPointOnLine} are not * expressed in the same reference frame. */ default void set(FramePoint3DReadOnly firstPointOnLine, FramePoint3DReadOnly secondPointOnLine) { firstPointOnLine.checkReferenceFrameMatch(secondPointOnLine); set(firstPointOnLine.getReferenceFrame(), firstPointOnLine, secondPointOnLine); } }