Exemple #1
0
 public static F64Vec4 RSqrtFastest(F64Vec4 a)
 {
     return(new F64Vec4(Fixed64.RSqrtFastest(a.RawX), Fixed64.RSqrtFastest(a.RawY), Fixed64.RSqrtFastest(a.RawZ), Fixed64.RSqrtFastest(a.RawW)));
 }
Exemple #2
0
 public static F64Vec4 NormalizeFastest(F64Vec4 a)
 {
     F64 ooLen = F64.FromRaw(Fixed64.RSqrtFastest(Fixed64.Mul(a.RawX, a.RawX) + Fixed64.Mul(a.RawY, a.RawY) + Fixed64.Mul(a.RawZ, a.RawZ) + Fixed64.Mul(a.RawW, a.RawW))); return(ooLen * a);
 }
 public static F64Vec3 RSqrtFastest(F64Vec3 a)
 {
     return(new F64Vec3(Fixed64.RSqrtFastest(a.RawX), Fixed64.RSqrtFastest(a.RawY), Fixed64.RSqrtFastest(a.RawZ)));
 }
Exemple #4
0
 public static F64 RSqrtFastest(F64 a)
 {
     return(FromRaw(Fixed64.RSqrtFastest(a.Raw)));
 }
 public static F64Vec2 RSqrtFastest(F64Vec2 a)
 {
     return(new F64Vec2(Fixed64.RSqrtFastest(a.RawX), Fixed64.RSqrtFastest(a.RawY)));
 }
Exemple #6
0
 public static F64Vec2 NormalizeFastest(F64Vec2 a) { F64 ooLen = F64.FromRaw(Fixed64.RSqrtFastest(Fixed64.Mul(a.RawX, a.RawX) + Fixed64.Mul(a.RawY, a.RawY))); return ooLen * a; }
Exemple #7
0
 public static F32Vec3 NormalizeFastest(F32Vec3 a)
 {
     F32 ooLen = F32.FromRaw((int)(Fixed64.RSqrtFastest((long)a.RawX * (long)a.RawX + (long)a.RawY * (long)a.RawY + (long)a.RawZ * (long)a.RawZ) >> 16)); return(ooLen * a);
 }