public static NuGenVec2F Max(NuGenVec2F a, NuGenVec2F b) { return(new NuGenVec2F( Math.Max(a._x[0], b._x[0]), Math.Max(a._x[1], b._x[1]) )); }
public override bool Equals(object obj) { NuGenVec2F x = (NuGenVec2F)obj; return( _x[0] == x._x[0] && _x[1] == x._x[1] ); }
public Scale2F(NuGenVec2F scale) { v = scale; }
public Scale2F(float x, float y) { v = new NuGenVec2F(x, y); }
public static NuGenVec2F Max(NuGenVec2F a, NuGenVec2F b) { return new NuGenVec2F( Math.Max(a._x[0], b._x[0]), Math.Max(a._x[1], b._x[1]) ); }
public static float Dot(NuGenVec2F u, NuGenVec2F v) { return u[0] * v[0] + u[1] * v[1]; }
public NuGenShift2F(NuGenVec2F shift) { v = shift; }
public NuGenShift2F(float x, float y) { v = new NuGenVec2F(x, y); }
public static float Dot(NuGenVec2F u, NuGenVec2F v) { return(u[0] * v[0] + u[1] * v[1]); }
public static bool ApproxEquals(NuGenVec2F a, NuGenVec2F b) { return (Math.Abs(a._x[0] - b._x[0]) < NuGenVector.TINY_FLOAT && Math.Abs(a._x[1] - b._x[1]) < NuGenVector.TINY_FLOAT); }
public NuGenRay2F(NuGenPnt2F p, NuGenVec2F v) { this.p = p; this.v = v; }
public NuGenShift2F(NuGenVec2F shift) { v = shift; }
public NuGenShift2F(float x, float y) { v = new NuGenVec2F(x, y); }
public NuGenRay2F(NuGenPnt2F p, NuGenVec2F v) { this.p = p; this.v = v; }
public Scale2F(NuGenVec2F scale) { v = scale; }
public Scale2F(float x, float y) { v = new NuGenVec2F(x, y); }