Example #1
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));
 }
Example #2
0
 /// <summary>
 /// Applies the given rotation to this object.
 /// </summary>
 /// <param name="rotation"></param>
 public void Rotate(Quaterniond rotation)
 {
     SetOrthoXY(rotation.Apply(_x), rotation.Apply(_y));
 }