/// <summary> /// Rotates a 3D matrix to a specific angle in a given axis. /// </summary> public virtual Matrix Rotate(double angle, AngleUnit unit, MatrixAxis axis) { if (Is3DMatrix == false) { throw new InvalidOperationException(Properties.Resources.Exception_3DRequired); } return(new Matrix(MatrixFunctions.Create3DRotationMatrix(angle, unit, axis))); }
/// <summary> /// Creates 3-dimensional rotation matrix to the specified angle and direction. /// </summary> public static Matrix Create3DRotationMatrix(double angle, AngleUnit unit, MatrixAxis axis) { return(new Matrix(MatrixFunctions.Create3DRotationMatrix(angle, unit, axis))); }