Пример #1
0
        public static Fixed64Matrix LookAt(Fixed64Vector3 forward, Fixed64Vector3 upwards)
        {
            LookAt(forward, upwards, out Fixed64Matrix result);

            return(result);
        }
Пример #2
0
 /// <summary>
 /// Creates a matrix which rotates around the given axis by the given angle.
 /// </summary>
 /// <param name="axis">The axis.</param>
 /// <param name="angle">The angle.</param>
 /// <returns>The resulting rotation matrix</returns>
 public static Fixed64Matrix AngleAxis(Fixed64 angle, Fixed64Vector3 axis)
 {
     CreateFromAxisAngle(ref axis, angle, out Fixed64Matrix result);
     return(result);
 }
Пример #3
0
 /// <summary>
 /// Creates a JMatrix representing an orientation from a quaternion.
 /// </summary>
 /// <param name="quaternion">The quaternion the matrix should be created from.</param>
 /// <returns>JMatrix representing an orientation.</returns>
 public static Fixed64Matrix CreateFromLookAt(Fixed64Vector3 position, Fixed64Vector3 target)
 {
     LookAt(target - position, Fixed64Vector3.up, out Fixed64Matrix result);
     return(result);
 }