Esempio n. 1
0
 public static FixedPoint Magnitude(FixedPointVector2 v)
 {
     return(Sqrt(FixedPointVector2.Dot(v, v)));
 }
Esempio n. 2
0
 public static FixedPoint ClampMagnitude(FixedPointVector2 v, FixedPoint clamp)
 {
     return(Sqrt(Clamp(FixedPointVector2.Dot(v, v), -clamp, clamp)));
 }