/** * Sets this line segment to be same as the given line segment. * * @param other the other line segment to copy. Not modified. */ @Override public void set(LineSegment3D other) { LineSegment3DBasics.super.set(other); }
/** * Redefines this line segment with new endpoints. * * @param firstEndpoint new endpoint of this line segment. Not modified * @param secondEndpoint new second endpoint of this line segment. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code secondEndpoint} are not * expressed in the same reference frame. */ default void set(Point3DReadOnly firstEndpoint, FramePoint3DReadOnly secondEndpoint) { checkReferenceFrameMatch(secondEndpoint); LineSegment3DBasics.super.set(firstEndpoint, secondEndpoint); }
/** * Redefines this line segment with new endpoints. * * @param firstEndpoint new endpoint of this line segment. Not modified * @param secondEndpoint new second endpoint of this line segment. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code firstEndpoint} are not * expressed in the same reference frame. */ default void set(FramePoint3DReadOnly firstEndpoint, Point3DReadOnly secondEndpoint) { checkReferenceFrameMatch(firstEndpoint); LineSegment3DBasics.super.set(firstEndpoint, secondEndpoint); }
/** * Redefines this line segment with a new first endpoint and a vector going from the first to the * second endpoint. * * @param firstEndpoint new first endpoint. Not modified. * @param fromFirstToSecondEndpoint vector going from the first to the second endpoint. Not * modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code firstEndpoint} are not * expressed in the same reference frame. */ default void set(FramePoint3DReadOnly firstEndpoint, Vector3DReadOnly fromFirstToSecondEndpoint) { checkReferenceFrameMatch(firstEndpoint); LineSegment3DBasics.super.set(firstEndpoint, fromFirstToSecondEndpoint); }
/** * Redefines this line segment with a new first endpoint and a vector going from the first to the * second endpoint. * * @param firstEndpoint new first endpoint. Not modified. * @param fromFirstToSecondEndpoint vector going from the first to the second endpoint. Not * modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code fromFirstToSecondEndpoint} are * not expressed in the same reference frame. */ default void set(Point3DReadOnly firstEndpoint, FrameVector3DReadOnly fromFirstToSecondEndpoint) { checkReferenceFrameMatch(fromFirstToSecondEndpoint); LineSegment3DBasics.super.set(firstEndpoint, fromFirstToSecondEndpoint); }
/** * Sets this line segment to be same as the given line segment. * * @param other the other line segment to copy. Not modified. */ default void set(LineSegment3DReadOnly other) { set(other.getFirstEndpoint(), other.getSecondEndpoint()); }
/** * Redefines this line segment with new endpoints. * * @param firstEndpoint new endpoint of this line segment. Not modified * @param secondEndpoint new second endpoint of this line segment. Not modified. * @throws ReferenceFrameMismatchException if {@code this}, {@code firstEndpoint}, and * {@code secondEndpoint} are not expressed in the same reference frame. */ default void set(FramePoint3DReadOnly firstEndpoint, FramePoint3DReadOnly secondEndpoint) { checkReferenceFrameMatch(firstEndpoint); checkReferenceFrameMatch(secondEndpoint); LineSegment3DBasics.super.set(firstEndpoint, secondEndpoint); }
/** * Redefines this line segment with a new first endpoint and a vector going from the first to the * second endpoint. * * @param firstEndpoint new first endpoint. Not modified. * @param fromFirstToSecondEndpoint vector going from the first to the second endpoint. Not * modified. * @throws ReferenceFrameMismatchException if {@code this}, {@code firstEndpoint}, and * {@code fromFirstToSecondEndpoint} are not expressed in the same reference frame. */ default void set(FramePoint3DReadOnly firstEndpoint, FrameVector3DReadOnly fromFirstToSecondEndpoint) { checkReferenceFrameMatch(firstEndpoint); checkReferenceFrameMatch(fromFirstToSecondEndpoint); LineSegment3DBasics.super.set(firstEndpoint, fromFirstToSecondEndpoint); }
/** * Sets this line segment to be same as the given line segment. * * @param other the other line segment to copy. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code other} are not expressed in * the same reference frame. */ default void set(FrameLineSegment3DReadOnly other) { checkReferenceFrameMatch(other); LineSegment3DBasics.super.set(other.getFirstEndpoint(), other.getSecondEndpoint()); }
/** * Sets this line segment to be the same as the given line segment expressed in the reference frame of this. * <p> * If {@code other} is expressed in the frame as {@code this}, then this method is equivalent to * {@link #set(FrameLineSegment3DReadOnly)}. * </p> * <p> * If {@code other} is expressed in a different frame than {@code this}, then {@code this} is set to * {@code other} and then transformed to be expressed in {@code this.getReferenceFrame()}. * </p> * * @param other the other frame line segment to set this to. Not modified. */ default void setMatchingFrame(FrameLineSegment3DReadOnly other) { LineSegment3DBasics.super.set(other); other.getReferenceFrame().transformFromThisToDesiredFrame(getReferenceFrame(), this); }