Ejemplo n.º 1
0
 /// <summary>
 /// Applies the given rotation to the axis of this rotation.
 /// </summary>
 /// <param name="rotation"></param>
 public void RotateAxis(Quaterniond rotation)
 {
     _axis = rotation.Apply(_axis);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="r0"></param>
 /// <param name="r1"></param>
 /// <returns></returns>
 public static Quaterniond CreateFromTo(Quaterniond r0, Quaterniond r1)
 {
     return(r1.Apply(r0.Inverse));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Applies the given rotation to this object.
 /// </summary>
 /// <param name="rotation"></param>
 public void Rotate(Quaterniond rotation)
 {
     SetXY(rotation.Apply(_x), rotation.Apply(_y));
 }