예제 #1
0
 public static F32Vec2 Normalize(F32Vec2 a)
 {
     F32 ooLen = F32.RSqrt(LengthSqr(a)); return(ooLen * a);
 }
예제 #2
0
 public static F32Vec2 RSqrt(F32Vec2 a)
 {
     return(new F32Vec2(F32.RSqrt(a.x), F32.RSqrt(a.y)));
 }