public void Swap(ref PPFloatPoint other) { var tempX = X; var tempY = Y; X = other.X; Y = other.Y; other.X = tempX; other.Y = tempY; }
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); }
public PPFloatPoint(PPFloatPoint other) { x = other.X; y = other.Y; }