public Vector(double x, double y, string name) { this.name = name; this.x = x; this.y = y; isNomrmalised = Magnitude.CompareTo(1) == 0; }
public int CompareTo(IntVector other) { return(Magnitude.CompareTo(other.Magnitude)); }
public int CompareTo(IntVector3D other) { // The magnitude comparison depends on the comparison of // the underlying Double values. return(Magnitude.CompareTo(other.Magnitude)); }