Esempio n. 1
0
 public static FPVector2 MulT(ref Rot rot, FPVector2 axis)
 {
     return(MulT(rot, axis));
 }
Esempio n. 2
0
 /// <summary>
 /// Initialize using a position vector and a rotation matrix.
 /// </summary>
 /// <param name="position">The position.</param>
 /// <param name="rotation">The r.</param>
 public Transform(ref FPVector2 position, ref Rot rotation)
 {
     p = position;
     q = rotation;
 }
Esempio n. 3
0
 /// Inverse rotate a vector
 public static FPVector2 MulT(Rot q, FPVector2 v)
 {
     return(new FPVector2(q.c * v.x + q.s * v.y, -q.s * v.x + q.c * v.y));
 }