/// <summary> /// Translates the matrix by the specified amount in each of the directions /// by multiplying by a translation matrix created from the specified values. /// </summary> /// <param name="x">The translation in the X coordinate</param> /// <param name="y">The translation in the Y coordinate</param> /// <param name="z">The translation in the Z coordinate</param> /// <returns>The translate matrix.</returns> public IMatrix4 Translate(double x, double y, double z) { Matrix4 tran = Translation(x, y, z); return(Multiply(tran) as IMatrix4); }
/// <summary> /// Rotates this matrix by the specified angle in degrees about the Z axis. /// </summary> /// <param name="degrees">Specified the angle in degrees to rotate about the Z axis.</param> /// <returns>The rotated matrix.</returns> public IMatrix4 RotateZ(double degrees) { Matrix4 rot = RotationZ(degrees); return(Multiply(rot) as IMatrix4); }