public static NuGenVec2D Max(NuGenVec2D a, NuGenVec2D b) { return(new NuGenVec2D( Math.Max(a._x[0], b._x[0]), Math.Max(a._x[1], b._x[1]) )); }
public override bool Equals(object obj) { NuGenVec2D x = (NuGenVec2D)obj; return( _x[0] == x._x[0] && _x[1] == x._x[1] ); }
public NuGenNuGenScale2D(NuGenVec2D scale) { v = scale; }
public NuGenNuGenScale2D(double x, double y) { v = new NuGenVec2D(x,y); }
public static double Dot(NuGenVec2D u, NuGenVec2D v) { return(u[0] * v[0] + u[1] * v[1]); }
public NuGenShift2D(NuGenVec2D shift) { v = shift; }
public static NuGenVec2D Max(NuGenVec2D a, NuGenVec2D b) { return new NuGenVec2D( Math.Max(a._x[0], b._x[0]), Math.Max(a._x[1], b._x[1]) ); }
public NuGenShift2D(double x, double y) { v = new NuGenVec2D(x, y); }
public static double Dot(NuGenVec2D u, NuGenVec2D v) { return u[0] * v[0] + u[1] * v[1]; }
public static bool ApproxEquals(NuGenVec2D a, NuGenVec2D b) { return Math.Abs(a._x[0] - b._x[0]) < NuGenVector.TINY_DOUBLE && Math.Abs(a._x[1] - b._x[1]) < NuGenVector.TINY_DOUBLE; }
public static bool ApproxEquals(NuGenVec2D a, NuGenVec2D b) { return (Math.Abs(a._x[0] - b._x[0]) < NuGenVector.TINY_DOUBLE && Math.Abs(a._x[1] - b._x[1]) < NuGenVector.TINY_DOUBLE); }
public NuGenRay2D(NuGenPnt2D p, NuGenVec2D v) { this.p = p; this.v = v; }
public NuGenNuGenScale2D(double x, double y) { v = new NuGenVec2D(x, y); }
public NuGenShift2D(double x, double y) { v = new NuGenVec2D(x,y); }