#include <rect.hpp>
Public Types | |
| typedef T | value_type |
| typedef std::size_t | size_type |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef math::basic_vector< T, 2 > | point_type |
| typedef math::basic_dim< T, 2 > | dim_type |
Public Member Functions | |
| basic_rect (value_type const &left=value_type(), value_type const &top=value_type(), value_type const &right=value_type(), value_type const &bottom=value_type()) | |
| basic_rect (point_type const &pos, dim_type const &sz) | |
| basic_rect (dim_type const &sz) | |
| value_type | w () const |
| value_type | h () const |
| point_type const | pos () const |
| dim_type const | dim () const |
| size_type | area () const |
| const_reference | left () const |
| const_reference | top () const |
| const_reference | right () const |
| const_reference | bottom () const |
| reference | left () |
| reference | top () |
| reference | right () |
| reference | bottom () |
| typedef T sge::math::basic_rect< T >::value_type |
| typedef std::size_t sge::math::basic_rect< T >::size_type |
| typedef T& sge::math::basic_rect< T >::reference |
| typedef const T& sge::math::basic_rect< T >::const_reference |
| typedef math::basic_vector<T,2> sge::math::basic_rect< T >::point_type |
| typedef math::basic_dim<T,2> sge::math::basic_rect< T >::dim_type |
| sge::math::basic_rect< T >::basic_rect | ( | value_type const & | left = value_type(), |
|
| value_type const & | top = value_type(), |
|||
| value_type const & | right = value_type(), |
|||
| value_type const & | bottom = value_type() | |||
| ) | [inline, explicit] |
Default constructs all parameters which are not given(sets them to zero for arithmetic built-in types)
| sge::exception | If right is smaller than left or bottom is smaller than top |
| sge::math::basic_rect< T >::basic_rect | ( | point_type const & | pos, | |
| dim_type const & | sz | |||
| ) | [inline] |
| sge::exception | If right is smaller than left or bottom is smaller than top |
| sge::math::basic_rect< T >::basic_rect | ( | dim_type const & | sz | ) | [inline, explicit] |
Same as basic_rect(point_type(0,0),sz)
| sge::math::basic_rect< T >::value_type sge::math::basic_rect< T >::w | ( | ) | const [inline] |
| sge::math::basic_rect< T >::value_type sge::math::basic_rect< T >::h | ( | ) | const [inline] |
| sge::math::basic_rect< T >::point_type const sge::math::basic_rect< T >::pos | ( | ) | const [inline] |
| sge::math::basic_rect< T >::dim_type const sge::math::basic_rect< T >::dim | ( | ) | const [inline] |
| sge::math::basic_rect< T >::size_type sge::math::basic_rect< T >::area | ( | ) | const [inline] |
| sge::math::basic_rect< T >::const_reference sge::math::basic_rect< T >::left | ( | ) | const [inline] |
| sge::math::basic_rect< T >::const_reference sge::math::basic_rect< T >::top | ( | ) | const [inline] |
| sge::math::basic_rect< T >::const_reference sge::math::basic_rect< T >::right | ( | ) | const [inline] |
| sge::math::basic_rect< T >::const_reference sge::math::basic_rect< T >::bottom | ( | ) | const [inline] |
| sge::math::basic_rect< T >::reference sge::math::basic_rect< T >::left | ( | ) | [inline] |
| sge::math::basic_rect< T >::reference sge::math::basic_rect< T >::top | ( | ) | [inline] |
| sge::math::basic_rect< T >::reference sge::math::basic_rect< T >::right | ( | ) | [inline] |
| sge::math::basic_rect< T >::reference sge::math::basic_rect< T >::bottom | ( | ) | [inline] |
1.5.5