/** * 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. */ default void set(Point3DReadOnly pointOnLine, Vector3DReadOnly lineDirection) { setPoint(pointOnLine); setDirection(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. */ default void set(Point2DReadOnly pointOnLine, Vector2DReadOnly lineDirection) { setPoint(pointOnLine); 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(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); }
/** * Redefines this line with a new point and a new direction vector. * * @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 set(double pointOnLineX, double pointOnLineY, double lineDirectionX, double lineDirectionY) { setPoint(pointOnLineX, pointOnLineY); setDirection(lineDirectionX, lineDirectionY); }