public override bool Equals(object obj) { bool ret = false; PointInt p = obj as PointInt; if (p != null) { ret = this.X == p.X && this.Y == p.Y; } return(ret); }
public bool Contains(PointInt pt) { return(this.Contains(pt.X, pt.Y)); }
public void From(PointInt lefttop, int width, int height) { this.LeftTop = lefttop; this.Width = width; this.Height = height; }
public RectInt(PointInt lefttop, int width, int height) { From(lefttop, width, height); }
/// <summary> /// /// </summary> /// <param name="x">屏幕X坐标</param> /// <param name="y">屏幕Y坐标</param> public DrawTile(int x, int y) { DrawPosition = new PointInt(x, y); }