/** * 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); }
/** * 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 the point and direction parts of this line 2D to zero and sets the current reference frame * to {@code referenceFrame}. * * @param referenceFrame the new reference frame to be associated with this line 2D. */ default void setToZero(ReferenceFrame referenceFrame) { setReferenceFrame(referenceFrame); setToZero(); }
/** * 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); }
/** * Sets the point and direction parts of this line 2D to {@link Double#NaN} and sets the current * reference frame to {@code referenceFrame}. * * @param referenceFrame the new reference frame to be associated with this line 2D. */ default void setToNaN(ReferenceFrame referenceFrame) { setReferenceFrame(referenceFrame); setToNaN(); }
/** * 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); }
/** * 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); }
/** * Modifies {@code perpendicularLineToPack} such that it is perpendicular to this line, with its * direction pointing to the left of this line, while going through the given point. * * @param point the point the line has to go through. Not modified. * @param perpendicularLineToPack the line perpendicular to {@code this} and going through * {@code point}. Modified. */ default void perpendicularLineThroughPoint(Point2DReadOnly point, FrameLine2DBasics perpendicularLineToPack) { perpendicularLineToPack.setReferenceFrame(getReferenceFrame()); Line2DReadOnly.super.perpendicularLineThroughPoint(point, perpendicularLineToPack); }
interiorBisectorToPack.setReferenceFrame(getReferenceFrame()); return Line2DReadOnly.super.interiorBisector(secondLine, interiorBisectorToPack);
/** * Modifies {@code perpendicularLineToPack} such that it is perpendicular to this line, with its * direction pointing to the left of this line, while going through the given point. * * @param point the point the line has to go through. Not modified. * @param perpendicularLineToPack the line perpendicular to {@code this} and going through * {@code point}. Modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code point} are not expressed in * the same reference frame. */ default void perpendicularLineThroughPoint(FramePoint2DReadOnly point, FrameLine2DBasics perpendicularLineToPack) { checkReferenceFrameMatch(point); perpendicularLineToPack.setReferenceFrame(getReferenceFrame()); Line2DReadOnly.super.perpendicularLineThroughPoint(point, perpendicularLineToPack); }
interiorBisectorToPack.setReferenceFrame(getReferenceFrame()); return Line2DReadOnly.super.interiorBisector(secondLine, interiorBisectorToPack);