Ejemplo n.º 1
0
 public static F64Vec4 RcpFast(F64Vec4 a)
 {
     return(new F64Vec4(Fixed64.RcpFast(a.RawX), Fixed64.RcpFast(a.RawY), Fixed64.RcpFast(a.RawZ), Fixed64.RcpFast(a.RawW)));
 }
Ejemplo n.º 2
0
 public static F64Vec4 DivFast(F64Vec4 a, F64 b)
 {
     long oob = Fixed64.RcpFast(b.Raw); return(new F64Vec4(Fixed64.Mul(a.RawX, oob), Fixed64.Mul(a.RawY, oob), Fixed64.Mul(a.RawZ, oob), Fixed64.Mul(a.RawW, oob)));
 }
Ejemplo n.º 3
0
 public static F64Vec3 RcpFast(F64Vec3 a)
 {
     return(new F64Vec3(Fixed64.RcpFast(a.RawX), Fixed64.RcpFast(a.RawY), Fixed64.RcpFast(a.RawZ)));
 }
Ejemplo n.º 4
0
 public static F64 RcpFast(F64 a)
 {
     return(FromRaw(Fixed64.RcpFast(a.Raw)));
 }
Ejemplo n.º 5
0
 public static F64Vec2 RcpFast(F64Vec2 a)
 {
     return(new F64Vec2(Fixed64.RcpFast(a.RawX), Fixed64.RcpFast(a.RawY)));
 }
Ejemplo n.º 6
0
 public static F64Vec2 DivFast(F64Vec2 a, F64 b) { long oob = Fixed64.RcpFast(b.Raw); return new F64Vec2(Fixed64.Mul(a.RawX, oob), Fixed64.Mul(a.RawY, oob)); }