예제 #1
0
 public static F32 Length(F32Vec2 a)
 {
     return(F32.Sqrt(a.x * a.x + a.y * a.y));
 }
예제 #2
0
 // public static F32Vec2 SqrtPrecise(F32Vec2 a) { return new F32Vec2(F32.SqrtPrecise(a.x), F32.SqrtPrecise(a.y)); }
 public static F32Vec2 Sqrt(F32Vec2 a)
 {
     return(new F32Vec2(F32.Sqrt(a.x), F32.Sqrt(a.y)));
 }