specialization of limbo::geometry::rectangle_traits for bLib::bBox
More...
#include <bLibApi.h>
|
|
typedef bLib::bBox | rectangle_type |
|
typedef int | coordinate_type |
|
|
static coordinate_type | get (const rectangle_type &rect, direction_2d const &dir) |
| get coordinate from rectangle More...
|
|
static void | set (rectangle_type &rect, direction_2d const &dir, coordinate_type const &value) |
| 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<>
struct limbo::geometry::rectangle_traits< bLib::bBox >
specialization of limbo::geometry::rectangle_traits for bLib::bBox
Definition at line 64 of file bLibApi.h.
static rectangle_type limbo::geometry::rectangle_traits< bLib::bBox >::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 104 of file bLibApi.h.
get coordinate from rectangle
- Parameters
-
rect | a rectangle object |
dir | direction |
- Returns
- coordinate
Definition at line 75 of file bLibApi.h.
set coordinate for rectangle
- Parameters
-
rect | a rectangle object |
dir | direction |
value | coordinate |
Definition at line 90 of file bLibApi.h.
The documentation for this struct was generated from the following file:
- /Users/yibolin/Documents/Projects/Limbo/limbo/geometry/api/bLibApi.h