示例#1
0
        public void Swap(ref PPFloatPoint other)
        {
            var tempX = X;
            var tempY = Y;

            X       = other.X;
            Y       = other.Y;
            other.X = tempX;
            other.Y = tempY;
        }
示例#2
0
        public override bool Equals(object obj)
        {
            if (!(obj is PPFloatPoint))
            {
                return(false);
            }
            PPFloatPoint comp = (PPFloatPoint)obj;

            // Note value types can't have derived classes, so we don't need
            // to check the types of the objects here.
            return(comp.X == this.X && comp.Y == this.Y);
        }
示例#3
0
 public PPFloatPoint(PPFloatPoint other)
 {
     x = other.X;
     y = other.Y;
 }