public bool Compare(object obj) { if (obj == null) { return(false); } if (obj.GetType() != typeof(fPoint)) { return(false); } fPoint o = (fPoint)obj; if (o.x == this.x && o.y == y) { return(true); } else { return(false); } }
public static Point Cast(fPoint p1) { return(new Point((int)p1.x, (int)p1.y)); }