Exemple #1
0
 public static F32Vec2 NormalizeFast(F32Vec2 a)
 {
     F32 ooLen = F32.RSqrtFast(LengthSqr(a)); return(ooLen * a);
 }
Exemple #2
0
 public static F32Vec2 RSqrtFast(F32Vec2 a)
 {
     return(new F32Vec2(F32.RSqrtFast(a.x), F32.RSqrtFast(a.y)));
 }