示例#1
0
        public Vector(double x, double y, string name)
        {
            this.name = name;
            this.x    = x;
            this.y    = y;

            isNomrmalised = Magnitude.CompareTo(1) == 0;
        }
示例#2
0
文件: Vectors.cs 项目: jklw10/ROQWE
 public int CompareTo(IntVector other)
 {
     return(Magnitude.CompareTo(other.Magnitude));
 }
示例#3
0
 public int CompareTo(IntVector3D other)
 {
     // The magnitude comparison depends on the comparison of
     // the underlying Double values.
     return(Magnitude.CompareTo(other.Magnitude));
 }