|
| | sRect () |
| |
| | sRect (const sVec4< T > &avVec) |
| |
| | sRect (T aLeft, T aTop, T aWidth=0, T aHeight=0) |
| |
| | sRect (const sVec2< T > &aTopLeft, const sVec2< T > &aBottomRight) |
| |
| | sRect (const sVec2< T > &aTopLeft, T aWidth=0, T aHeight=0) |
| |
| void | Set (T aLeft, T aTop, T aWidth=0, T aHeight=0) |
| | Set the Top Left corner and the size of the rectangle. More...
|
| |
| void | Set (const sVec2< T > &aTopLeft, T aWidth, T aHeight) |
| | Set the Top Left corner and the size of the rectangle. More...
|
| |
| void | SetCorners (const sVec2< T > &aTopLeft, const sVec2< T > &aBottomRight) |
| | Set the rectangle corners. More...
|
| |
| void | SetCorner (eRectCorners aCorner, const sVec2< T > &aCornerPos) |
| | Set a rectangle corner. Adapt the others accordingly. More...
|
| |
| sVec2< T > | GetCorner (eRectCorners aCorner) const |
| | Get a rectangle corner. More...
|
| |
| void | SetTopLeft (const sVec2< T > &v) |
| | Set the Top Left corner. More...
|
| |
| sVec2< T > | GetTopLeft () const |
| | Get the Top Left corner. More...
|
| |
| void | SetTopRight (const sVec2< T > &v) |
| | Set the Top Right corner. More...
|
| |
| sVec2< T > | GetTopRight () const |
| | Get the Top Right corner. More...
|
| |
| void | SetBottomRight (const sVec2< T > &v) |
| | Set the Bottom Right corner. More...
|
| |
| sVec2< T > | GetBottomRight () const |
| | Get the Bottom Right corner. More...
|
| |
| void | SetBottomLeft (const sVec2< T > &v) |
| | Set the Bottom Left corner. More...
|
| |
| sVec2< T > | GetBottomLeft () const |
| | Get the Bottom Left corner. More...
|
| |
| void | SetLeft (T aV) |
| | Set the Left edge. More...
|
| |
| T | GetLeft () const |
| | Get the Left edge. More...
|
| |
| void | SetRight (T aV) |
| | Set the Right edge. More...
|
| |
| T | GetRight () const |
| | Get the Right edge. More...
|
| |
| void | SetTop (T aV) |
| | Set the Top edge. More...
|
| |
| T | GetTop () const |
| | Get the Top edge. More...
|
| |
| void | SetBottom (T aV) |
| | Set the Bottom edge. More...
|
| |
| T | GetBottom () const |
| | Get the Bottom edge. More...
|
| |
| void | SetWidth (T aWidth) |
| | Set the width of the rectangle. More...
|
| |
| T | GetWidth () const |
| | Get the width of the rectangle. More...
|
| |
| void | SetHeight (T aHeight) |
| | Set the height of the rectangle. More...
|
| |
| T | GetHeight () const |
| | Get the height of the rectangle. More...
|
| |
| void | SetSize (T aWidth, T aHeight) |
| | Set the width and height of the rectangle. More...
|
| |
| void | SetSize (const sVec2< T > &aSize) |
| | Set the size of the rectangle. More...
|
| |
| sVec2< T > | GetSize () const |
| | Get the size of the rectangle. More...
|
| |
| void | Move (const sVec2< T > &aMoveOffset) |
| | Move the rectangle of the given offsets (relative movement). More...
|
| |
| void | MoveTo (const sVec2< T > &aPos, eRectCorners aCorner=eRectCorners_TopLeft) |
| | Move the rectangle to the given position (absolute movement). More...
|
| |
| void | Inflate (const sVec2< T > &aV) |
| | Inflate the size of the rectangle. More...
|
| |
| void | Normalize () |
| | Normalize the rectangle. Make sure that width and height are positive. More...
|
| |
| void | SetCenter (const sVec2< T > &avPos) |
| | Set the center point of the rectangle. More...
|
| |
| sVec2< T > | GetCenter () const |
| | Get the center point of the rectangle. More...
|
| |
| tBool | IntersectRect (const sRect< T > &aRect) const |
| | Return eTrue if the given rectangle intersect this rectangle. More...
|
| |
| tBool | Intersect (const sVec2< T > &aPoint) const |
| | Return eTrue if the given point intersect/is inside this rectangle. More...
|
| |
| sRect | ClipRect (const sRect< T > &aRect) const |
| | clips the rectangle passed against himself and returns the resulting rectangle More...
|
| |
| sRect | ComputeFrameCenter (T Left, T Right, T Top, T Bottom) const |
| | Get the center of the a frame with the specified borders. More...
|
| |
| sRect | ComputeFrameCenter (const sVec4< T > &aFrameBorder) const |
| | Get the center of the a frame with the specified borders. More...
|
| |
| T | GetFrameLeftBorder (const sRect< T > &aFrame) const |
| | Get the size of the Left frame border. More...
|
| |
| T | GetFrameRightBorder (const sRect< T > &aFrame) const |
| | Get the size of the Right frame border. More...
|
| |
| T | GetFrameTopBorder (const sRect< T > &aFrame) const |
| | Get the size of the Top frame border. More...
|
| |
| T | GetFrameBottomBorder (const sRect< T > &aFrame) const |
| | Get the size of the Bottom frame border. More...
|
| |
| sVec4< T > | GetFrameBorder (const sRect< T > &aFrame) const |
| | Return a vector that contains the border sizes. More...
|
| |
| sRect & | operator+= (const sVec2< T > &v) |
| | += operator, move the rectangle. More...
|
| |
| sRect | operator+ (const sVec2< T > &v) const |
| | += operator, move the rectangle. More...
|
| |
| sRect & | operator-= (const sVec2< T > &v) |
| | -= operator, move the rectangle. More...
|
| |
| sRect | operator- (const sVec2< T > &v) const |
| | -= operator, move the rectangle. More...
|
| |
| sRect & | operator= (const sVec2< T > &v) |
| | = operator, move the rectangle to the specified position, Top Left is the anchor corner. More...
|
| |
| sRect< tI32 > | ToInt () const |
| |
| sRect< tF32 > | ToFloat () const |
| |
| sRect< T > | FitInto (const sRect< T > &aDestRect, const tBool abCenter=ni::eTrue) const |
| |
| const tBool | IsNull () const |
| |
| void | Add (const sVec2< T > &aTL, const sVec2< T > &aBR) |
| |
| void | Add (const sRect< T > &aRight) |
| |
| void | Set (T aX, T aY=0, T aZ=0, T aW=0) |
| |
| void | Set (const T *apV) |
| |
| tSize | size () const |
| |
| T * | ptr () |
| |
| const T * | ptr () const |
| |
| T & | operator[] (int idx) |
| |
| const T & | operator[] (int idx) const |
| |
| T & | Left () |
| |
| const T & | Left () const |
| |
| T & | Top () |
| |
| const T & | Top () const |
| |
| T & | Right () |
| |
| const T & | Right () const |
| |
| T & | Bottom () |
| |
| const T & | Bottom () const |
| |
| T & | x1 () |
| |
| const T & | x1 () const |
| |
| T & | y1 () |
| |
| const T & | y1 () const |
| |
| T & | x2 () |
| |
| const T & | x2 () const |
| |
| T & | y2 () |
| |
| const T & | y2 () const |
| |
| T & | A () |
| |
| const T & | A () const |
| |
| T & | B () |
| |
| const T & | B () const |
| |
| T & | C () |
| |
| const T & | C () const |
| |
| T & | D () |
| |
| const T & | D () const |
| |
| void | SetNormal (const sVec3< T > &v) |
| |
| sVec3< T > | GetNormal () const |
| |
| void | SetDist (T v) |
| |
| T | GetDist () const |
| |
| void | SetPosition (const sVec3< T > &v) |
| |
| sVec3< T > | GetPosition () const |
| |
| void | SetRadius (T v) |
| |
| T | GetRadius () const |
| |
| T & | ew () |
| |
| const T & | ew () const |
| |
| T & | ex () |
| |
| const T & | ex () const |
| |
| T & | ey () |
| |
| const T & | ey () const |
| |
| T & | ez () |
| |
| const T & | ez () const |
| |
| T & | _11 () |
| |
| const T & | _11 () const |
| |
| T & | _12 () |
| |
| const T & | _12 () const |
| |
| T & | _21 () |
| |
| const T & | _21 () const |
| |
| T & | _22 () |
| |
| const T & | _22 () const |
| |
| sVec4< T > | operator[] (const cchar *idx) const |
| |
| bool | operator< (const sVec4< T > &aR) const |
| |
| bool | operator<= (const sVec4< T > &aR) const |
| |
| bool | operator> (const sVec4< T > &aR) const |
| |
| bool | operator>= (const sVec4< T > &aR) const |
| |
| bool | operator== (const sVec4< T > &aR) const |
| |
| bool | operator!= (const sVec4< T > &aR) const |
| |
| sVec4 | operator+ () const |
| |
| sVec4 | operator- () const |
| |
| sVec4 & | operator+= (const sVec4< T > &v) |
| |
| sVec4 & | operator+= (T s) |
| |
| sVec4 | operator+ (const sVec4< T > &v) const |
| |
| sVec4 | operator+ (T s) const |
| |
| sVec4 & | operator-= (const sVec4< T > &v) |
| |
| sVec4 & | operator-= (T s) |
| |
| sVec4 | operator- (const sVec4< T > &v) const |
| |
| sVec4 | operator- (T s) const |
| |
| sVec4 & | operator*= (const sVec4< T > &v) |
| |
| sVec4 & | operator*= (T s) |
| |
| sVec4 | operator* (const sVec4< T > &v) const |
| |
| sVec4 | operator* (T s) const |
| |
| sVec4 & | operator/= (const sVec4< T > &v) |
| |
| sVec4 & | operator/= (T s) |
| |
| sVec4 | operator/ (const sVec4< T > &v) const |
| |
| sVec4 | operator/ (T s) const |
| |