Ejemplo n.º 1
0
        public Point(double xCoordinate, double yCoordinate)
        {
#if SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=289
            m_X      = xCoordinate;
            m_Y      = yCoordinate;
            _hashKey = null;
            UpdateHashKey();
#else
            X = xCoordinate;
            Y = yCoordinate;
#endif
        }
        public PointPair(Point first, Point second)
        {
            if (IsLess(first, second))
            {
                this.first  = first;
                this.second = second;
            }
            else
            {
                this.first  = second;
                this.second = first;
            }
#if SHARPKIT //https://code.google.com/p/sharpkit/issues/detail?id=289
            //SharpKit/Colin - hashing
            _hashKey = this.first.X + "," + this.first.Y + ";" + this.second.X + "," + this.second.Y;
#endif
        }
 private void UpdateHashKey()
 {
     _hashKey = GetHashCode().ToString();
 }
Ejemplo n.º 4
0
 private void UpdateHashKey()
 {
     _hashKey = "(" + X + "," + Y + ")";
 }
Ejemplo n.º 5
0
 private void UpdateHashKey()
 {
     _hashKey = "" + x + "," + y;
 }
 private void UpdateHashKey()
 {
     _hashKey = ""+x+","+y;
 }
 private void UpdateHashKey()
 {
     _hashKey = GetHashCode().ToString();
 }