Rect of type T containing position (pos) and width.
More...
#include "mathfu/rect.h"
template<class T>
class mathfu::Rect< T >
Rect of type T containing position (pos) and width.
Rect contains two 2D Vectors of type T representing position (pos) and size.
- Template Parameters
-
|
| Rect (const Vector< T, 4 > &v) |
| Create a rect from a vector4 of the same type. More...
|
|
| Rect (T x=static_cast< T >(0), T y=static_cast< T >(0), T width=static_cast< T >(0), T height=static_cast< T >(0)) |
| Create a rect from x, y, width and height values. More...
|
|
| Rect (const Vector< T, 2 > &pos, const Vector< T, 2 > &size) |
| Create a rect from two vector2 representing position and size. More...
|
|
Create a rect from a vector4 of the same type.
- Parameters
-
v | Vector that the data will be copied from. |
template<class T>
mathfu::Rect< T >::Rect |
( |
T |
x = static_cast<T>(0) , |
|
|
T |
y = static_cast<T>(0) , |
|
|
T |
width = static_cast<T>(0) , |
|
|
T |
height = static_cast<T>(0) |
|
) |
| |
|
inline |
Create a rect from x, y, width and height values.
- Parameters
-
x | the given x value. |
y | the given y value. |
width | the given width value. |
height | the given height value. |
Create a rect from two vector2 representing position and size.
- Parameters
-
pos | Vector representing the position vector (x and y values). |
size | Vector represening the size vector (width and height values). |
The documentation for this class was generated from the following file: