/** * Sets this orientation 2D to the {@code other} orientation 2D. * * @param other the other orientation 2D. Not modified. */ @Override public void set(Orientation2D other) { Orientation2DBasics.super.set(other); }
/** * Sets this orientation 2D to the {@code other} orientation 2D. * * @param other the other orientation 2D. Not modified. */ @Override public void set(Orientation2DReadOnly other) { Orientation2DBasics.super.set(other); }
/** * Sets the orientation from the yaw angle of the given quaternion. * * @param orientation the orientation with the new angle value for this. Not modified. */ default void setOrientation(Orientation3DReadOnly orientation) { getOrientation().set(orientation); }
/** * Sets this orientation 2D to the {@code other} orientation 2D. * * @param other the other orientation 2D. Not modified. * @throws ReferenceFrameMismatchException if {@code other} is not expressed in the same frame as * {@code this}. */ default void set(FrameOrientation2DReadOnly other) { checkReferenceFrameMatch(other); Orientation2DBasics.super.set(other); }
/** * Sets this orientation 2D to the yaw angle of the given {@code frameOrientation3DReadOnly}. * * @param frameOrientation3DReadOnly the orientation to get the yaw angle from. Not modified. * @throws ReferenceFrameMismatchException if {@code frameOrientation3DReadOnly} is not expressed in * the same frame as {@code this}. */ default void set(FrameOrientation3DReadOnly frameOrientation3DReadOnly) { checkReferenceFrameMatch(frameOrientation3DReadOnly); Orientation2DBasics.super.set(frameOrientation3DReadOnly); }
/** * Sets the orientation from the given orientation 2D. * * @param orientation the orientation with the new angle value for this. Not modified. */ default void setOrientation(Orientation2DReadOnly orientation) { getOrientation().set(orientation); }
/** * Sets this orientation to be the same as the given one 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(FrameOrientation2DReadOnly)}. * </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 orientation 2D to set this to. Not modified. */ default void setMatchingFrame(FrameOrientation2DReadOnly other) { Orientation2DBasics.super.set(other); other.getReferenceFrame().transformFromThisToDesiredFrame(getReferenceFrame(), this); }