示例#1
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));
 }
示例#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));
 }
示例#3
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);
 }