/** * Redefines this line such that it goes through the two given points in the given reference frame. * * @param referenceFrame the new reference frame for this frame line. * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, Point3DReadOnly firstPointOnLine, Point3DReadOnly secondPointOnLine) { setReferenceFrame(referenceFrame); set(firstPointOnLine, secondPointOnLine); }
/** {@inheritDoc} */ @Override public void set(FrameLine2D other) { FrameLine2DBasics.super.set(other); }
/** * Sets this line to be the same as the given line. * * @param referenceFrame the new reference frame for this frame line. * @param line2DReadOnly the line to copy. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, Line2DReadOnly line2DReadOnly) { setReferenceFrame(referenceFrame); set(line2DReadOnly); }
/** * Redefines this line with a new point, a new direction vector, and a new reference frame. * * @param referenceFrame the new reference frame for this frame line. * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, Point3DReadOnly pointOnLine, Vector3DReadOnly lineDirection) { setReferenceFrame(referenceFrame); set(pointOnLine, lineDirection); }
/** * Sets this line to go through the endpoints of the given line segment. * * @param referenceFrame the new reference frame for this frame line. * @param lineSegment2DReadOnly the line segment to copy. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, LineSegment2DReadOnly lineSegment2DReadOnly) { setReferenceFrame(referenceFrame); set(lineSegment2DReadOnly); }
/** * Sets this line to go through the endpoints of the given line segment projected on the XY-plane. * * @param referenceFrame the new reference frame for this frame line. * @param lineSegment3DReadOnly the line segment to copy. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, LineSegment3DReadOnly lineSegment3DReadOnly) { setReferenceFrame(referenceFrame); set(lineSegment3DReadOnly); }
/** * Redefines this line such that it goes through the two given points in the given reference frame. * * @param referenceFrame the new reference frame for this frame line. * @param firstPointOnLine first point on this line. Not modified. * @param secondPointOnLine second point on this line. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, Point2DReadOnly firstPointOnLine, Point2DReadOnly secondPointOnLine) { setReferenceFrame(referenceFrame); set(firstPointOnLine, secondPointOnLine); }
/** * Sets this line to be the same as the given line. * * @param referenceFrame the new reference frame for this frame line. * @param line3DReadOnly the line to copy. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, Line3DReadOnly line3DReadOnly) { setReferenceFrame(referenceFrame); set(line3DReadOnly); }
/** * Redefines this line with a new point, a new direction vector, and a new reference frame. * * @param referenceFrame the new reference frame for this frame line. * @param pointOnLine new point on this line. Not modified. * @param lineDirection new direction of this line. Not modified. */ default void setIncludingFrame(ReferenceFrame referenceFrame, Point2DReadOnly pointOnLine, Vector2DReadOnly lineDirection) { setReferenceFrame(referenceFrame); set(pointOnLine, lineDirection); }
/** * Redefines this line with a new point, a new direction vector, and a new reference frame. * * @param referenceFrame the new reference frame for this frame line. * @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. */ default void setIncludingFrame(ReferenceFrame referenceFrame, double pointOnLineX, double pointOnLineY, double lineDirectionX, double lineDirectionY) { setReferenceFrame(referenceFrame); set(pointOnLineX, pointOnLineY, lineDirectionX, lineDirectionY); }