Esempio n. 1
0
 /// <summary>
 /// Return the magnitude of a vector
 /// </summary>
 /// <param name="v">Vector</param>
 /// <returns>Magnitude of the vector |v|</returns>
 public static float Magnitude(this IVector3 v)
 {
     return((float)Math.Sqrt(v.Dot(v)));
 }