namespace DCSDK { namespace DCMath { /** This is a 2D rectangle */ template struct DCRect { union { struct { DCVector corners[2]; }; struct { DCVector TopLeft; DCVector BottomRight; }; }; /// constructor, does nothing DCRect(); /// constructor, which inits the rectangle by giving the upper-left and bottom-right corners DCRect(DCVector topleft,DCVector bottomright); }; } }