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