Esempio n. 1
0
        public Vector(double x, double y, string name)
        {
            this.name = name;
            this.x    = x;
            this.y    = y;

            isNomrmalised = Magnitude.CompareTo(1) == 0;
        }
Esempio n. 2
0
 public int CompareTo(IntVector other)
 {
     return(Magnitude.CompareTo(other.Magnitude));
 }
Esempio n. 3
0
 public int CompareTo(IntVector3D other)
 {
     // The magnitude comparison depends on the comparison of
     // the underlying Double values.
     return(Magnitude.CompareTo(other.Magnitude));
 }