/** * Sets this vector's components from the given array {@code array} and updates the frame of this * vector. * <p> * The components are read in the following order: {@code angularPartX}, {@code angularPartY}, * {@code angularPartZ}, {@code linearPartX}, {@code linearPartY}, {@code linearPartZ}. * </p> * * @param expressedInFrame the reference frame in which the data is expressed. * @param array the array containing the new values for this vector's components. Not modified. */ default void setIncludingFrame(ReferenceFrame expressedInFrame, float[] array) { setIncludingFrame(expressedInFrame, 0, array); }
default void setIncludingFrame(double time, FrameVector3DReadOnly angularPart, FrameVector3DReadOnly linearPart) { setTime(time); SpatialVectorBasics.super.setIncludingFrame(angularPart, linearPart); }
default void setIncludingFrame(double time, SpatialVectorReadOnly spatialVector) { setTime(time); SpatialVectorBasics.super.setIncludingFrame(spatialVector); }
default void setIncludingFrame(ReferenceFrame expressedInFrame, double time, Vector3DReadOnly angularPart, Vector3DReadOnly linearPart) { setTime(time); SpatialVectorBasics.super.setIncludingFrame(expressedInFrame, angularPart, linearPart); }
/** * Sets this vector given an angular part and linear part and updates the frame of this vector. * * @param angularPart the vector holding the new values for the angular part and expressed in the * new "expressed-in-frame" to use for this spatial vector. Not modified. * @param linearPart the vector holding the new values for the linear part and expressed in the * new "expressed-in-frame" to use for this spatial vector. Not modified. * @throws ReferenceFrameMismatchException if {@code angularPart} and {@code linearPart} are not * expressed in the same reference frame. */ default void setIncludingFrame(FrameVector3DReadOnly angularPart, FrameVector3DReadOnly linearPart) { angularPart.checkReferenceFrameMatch(linearPart); setIncludingFrame(angularPart.getReferenceFrame(), angularPart, linearPart); }