예제 #1
0
 public static F32Vec2 FromInt(int x, int y)
 {
     return(new F32Vec2(F32.FromInt(x), F32.FromInt(y)));
 }
예제 #2
0
 public static F32Vec2 Max(F32Vec2 a, F32Vec2 b)
 {
     return(new F32Vec2(F32.Max(a.x, b.x), F32.Max(a.y, b.y)));
 }
예제 #3
0
 public F32Vec2(F32 x, F32 y)
 {
     this.x = x;
     this.y = y;
 }
예제 #4
0
 public static F32Vec2 NormalizeFastest(F32Vec2 a)
 {
     F32 ooLen = F32.RSqrtFastest(LengthSqr(a)); return(ooLen * a);
 }
예제 #5
0
 public static F32Vec2 Lerp(F32Vec2 a, F32Vec2 b, F32 t)
 {
     return(a + t * (b - 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 FromFloat(float x, float y)
 {
     return(new F32Vec2(F32.FromFloat(x), F32.FromFloat(y)));
 }
예제 #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 FromDouble(double x, double y)
 {
     return(new F32Vec2(F32.FromDouble(x), F32.FromDouble(y)));
 }
예제 #18
0
 public static F32Vec2 RSqrtFastest(F32Vec2 a)
 {
     return(new F32Vec2(F32.RSqrtFastest(a.x), F32.RSqrtFastest(a.y)));
 }