public CGRect(CGPoint location, CGSize size) { X = location.X; Y = location.Y; Width = size.Width; Height = size.Height; }
public void Center() { var point = new CGPoint(12, 3); var obj = new UIView { Center = point, }; Assert.AreEqual(point, obj.Center); }
public CGSize(CGPoint pt) { Width = pt.X; Height = pt.Y; }
public void Offset(CGPoint pos) { Offset(pos.X, pos.Y); }
public bool Contains(CGPoint pt) { return Contains(pt.X, pt.Y); }
public static CGPoint Subtract(CGPoint pt, CGSize sz) { return new CGPoint(pt.X - sz.Width, pt.Y - sz.Height); }
public static CGPoint Add(CGPoint pt, CGSize sz) { return new CGPoint(pt.X + sz.Width, pt.Y + sz.Height); }