/// <summary> /// Constructor sets both the top left and bottom right to equal the rect. /// </summary> /// <param name="pt">Point.</param> public C2DRect(C2DPoint pt) { TopLeft.Set(pt); BottomRight.Set(pt); }
/// <summary> /// Assignment. /// </summary> /// <param name="ptTopLeft">The top left point.</param> /// <param name="ptBottomRight">The bottom right point.</param> public void Set(C2DPoint ptTopLeft, C2DPoint ptBottomRight) { TopLeft.Set(ptTopLeft); BottomRight.Set(ptBottomRight); }
/// <summary> /// Constructor. /// </summary> /// <param name="Other">The other rect.</param> public C2DRect(C2DRect Other) { TopLeft.Set(Other.TopLeft); BottomRight.Set(Other.BottomRight); }