Exemple #1
0
 public static F32 DistanceFastest(F32Vec2 a, F32Vec2 b)
 {
     return(LengthFastest(a - b));
 }
Exemple #2
0
 public static F32 Dot(F32Vec2 a, F32Vec2 b)
 {
     return(a.x * b.x + a.y * b.y);
 }
Exemple #3
0
 public static F32 Distance(F32Vec2 a, F32Vec2 b)
 {
     return(Length(a - b));
 }
Exemple #4
0
 public static F32 LengthSqr(F32Vec2 a)
 {
     return(a.x * a.x + a.y * a.y);
 }
Exemple #5
0
 public static F32Vec2 NormalizeFastest(F32Vec2 a)
 {
     F32 ooLen = F32.RSqrtFastest(LengthSqr(a)); return(ooLen * a);
 }
Exemple #6
0
 public static F32Vec2 RcpFast(F32Vec2 a)
 {
     return(new F32Vec2(F32.RcpFast(a.x), F32.RcpFast(a.y)));
 }
Exemple #7
0
 public static F32 LengthFastest(F32Vec2 a)
 {
     return(F32.SqrtFastest(a.x * a.x + a.y * a.y));
 }
Exemple #8
0
 public static F32Vec2 Pow(F32Vec2 a, F32 b)
 {
     return(new F32Vec2(F32.Pow(a.x, b), F32.Pow(a.y, b)));
 }
Exemple #9
0
 public static F32Vec2 Pow(F32 a, F32Vec2 b)
 {
     return(new F32Vec2(F32.Pow(a, b.x), F32.Pow(a, b.y)));
 }
Exemple #10
0
 public static F32Vec2 SinFast(F32Vec2 a)
 {
     return(new F32Vec2(F32.SinFast(a.x), F32.SinFast(a.y)));
 }
Exemple #11
0
 public static F32Vec2 CosFastest(F32Vec2 a)
 {
     return(new F32Vec2(F32.CosFastest(a.x), F32.CosFastest(a.y)));
 }
Exemple #12
0
 public static F32Vec2 Log2Fastest(F32Vec2 a)
 {
     return(new F32Vec2(F32.Log2Fastest(a.x), F32.Log2Fastest(a.y)));
 }
Exemple #13
0
 public static F32Vec2 Log(F32Vec2 a)
 {
     return(new F32Vec2(F32.Log(a.x), F32.Log(a.y)));
 }
Exemple #14
0
 public static F32Vec2 Exp2Fast(F32Vec2 a)
 {
     return(new F32Vec2(F32.Exp2Fast(a.x), F32.Exp2Fast(a.y)));
 }
Exemple #15
0
 public static F32Vec2 Lerp(F32Vec2 a, F32Vec2 b, F32 t)
 {
     return(a + t * (b - a));
 }
Exemple #16
0
 public static F32Vec2 PowFastest(F32Vec2 a, F32Vec2 b)
 {
     return(new F32Vec2(F32.PowFastest(a.x, b.x), F32.PowFastest(a.y, b.y)));
 }
Exemple #17
0
 public static F32Vec2 Max(F32Vec2 a, F32Vec2 b)
 {
     return(new F32Vec2(F32.Max(a.x, b.x), F32.Max(a.y, b.y)));
 }
Exemple #18
0
 public static F32Vec2 RSqrtFastest(F32Vec2 a)
 {
     return(new F32Vec2(F32.RSqrtFastest(a.x), F32.RSqrtFastest(a.y)));
 }