/** * Sets this matrix to {@code other}. * * @param other the other frame matrix to copy the values of. Not modified. * @throws ReferenceFrameMismatchException if the matrix is not expressed in the same reference * frame as {@code this}. */ default void set(FrameMatrix3DReadOnly other) { set(other.getReferenceFrame(), other); }
/** * Sets this matrix to {@code matrix3DReadOnly}. * * @param referenceFrame the reference frame in which the matrix is expressed. * @param matrix3DReadOnly the other matrix to copy the values of. Not modified. * @throws ReferenceFrameMismatchException if the matrix is not expressed in the same reference * frame as {@code this}. */ default void set(ReferenceFrame referenceFrame, Matrix3DReadOnly matrix3DReadOnly) { checkReferenceFrameMatch(referenceFrame); set(matrix3DReadOnly); }
/** * Sets the 9 coefficients of this matrix to the given ones. * * @param referenceFrame the reference frame in which the given coefficients are expressed. * @param m00 the new 1st row 1st column coefficient for this matrix. * @param m01 the new 1st row 2nd column coefficient for this matrix. * @param m02 the new 1st row 3rd column coefficient for this matrix. * @param m10 the new 2nd row 1st column coefficient for this matrix. * @param m11 the new 2nd row 2nd column coefficient for this matrix. * @param m12 the new 2nd row 3rd column coefficient for this matrix. * @param m20 the new 3rd row 1st column coefficient for this matrix. * @param m21 the new 3rd row 2nd column coefficient for this matrix. * @param m22 the new 3rd row 3rd column coefficient for this matrix. * @throws ReferenceFrameMismatchException if the coefficients are not expressed in the same * reference frame as {@code this}. */ default void set(ReferenceFrame referenceFrame, double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22) { checkReferenceFrameMatch(referenceFrame); set(m00, m01, m02, m10, m11, m12, m20, m21, m22); }