type traits for rectangle
More...
#include <Geometry.h>
|
|
typedef RectType | rectangle_type |
|
typedef
rectangle_type::coordinate_type | coordinate_type |
|
|
static coordinate_type | get (rectangle_type const &rectangle, direction_2d const &direct) |
| get coordinate from rectangle More...
|
|
static void | set (rectangle_type &rectangle, direction_2d const &direct, coordinate_type const &v) |
| set coordinate for rectangle More...
|
|
static rectangle_type | construct (coordinate_type const &xl, coordinate_type const &yl, coordinate_type const &xh, coordinate_type const &yh) |
| construct rectangle from coordinates More...
|
|
template<typename RectType>
class limbo::geometry::rectangle_traits< RectType >
type traits for rectangle
- Template Parameters
-
Definition at line 199 of file Geometry.h.
template<typename RectType >
static rectangle_type limbo::geometry::rectangle_traits< RectType >::construct |
( |
coordinate_type const & |
xl, |
|
|
coordinate_type const & |
yl, |
|
|
coordinate_type const & |
xh, |
|
|
coordinate_type const & |
yh |
|
) |
| |
|
inlinestatic |
construct rectangle from coordinates
- Parameters
-
- Returns
- rectangle object
Definition at line 221 of file Geometry.h.
template<typename RectType >
get coordinate from rectangle
- Parameters
-
rectangle | a rectangle object |
direct | direction |
- Returns
- coordinate
Definition at line 210 of file Geometry.h.
template<typename RectType >
set coordinate for rectangle
- Parameters
-
rectangle | a rectangle object |
direct | direction |
v | coordinate |
Definition at line 216 of file Geometry.h.
The documentation for this class was generated from the following file:
- /Users/yibolin/Documents/Projects/Limbo/limbo/geometry/Geometry.h