Exemplo n.º 1
0
 /// <summary>
 /// Gets the angle between this vector and another vector
 /// </summary>
 /// <param name="left">The source vector</param>
 /// <param name="right">The target vector</param>
 /// <returns>The angle between the two vectors</returns>
 public static float GetAngle(this Vector2f left, Vector2f right)
 {
     return((float)VectorUtil.GetAngle(left, right));
 }
Exemplo n.º 2
0
 public static Vector2f Rotate(this Vector2f self, float angle)
 {
     return(VectorUtil.GetRotatedVector(self, angle));
 }