Beispiel #1
0
 /// <summary>
 ///   <para>Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis (in that order).</para>
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="z"></param>
 public static Quat Euler(float x, float y, float z)
 {
     return(Quat.Internal_FromEulerRad(new Vector3(x, y, z) * degToRad));
 }
Beispiel #2
0
 /// <summary>
 ///   <para>Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis (in that order).</para>
 /// </summary>
 /// <param name="euler"></param>
 public static Quat Euler(Vector3 euler)
 {
     return(Quat.Internal_FromEulerRad(euler * degToRad));
 }
Beispiel #3
0
 /// <summary>
 ///   <para>Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis (in that order).</para>
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="z"></param>
 public static Quat Euler(double x, double y, double z)
 {
     return(Quat.Internal_FromEulerRad(new Vector3((float)x, (float)y, (float)z) * degToRad));
 }