Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
limbo::geometry::rectangle_traits< RectType > Class Template Reference

type traits for rectangle More...

#include <Geometry.h>

Public Types

typedef RectType rectangle_type
 
typedef
rectangle_type::coordinate_type 
coordinate_type
 

Static Public Member Functions

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...
 

Detailed Description

template<typename RectType>
class limbo::geometry::rectangle_traits< RectType >

type traits for rectangle

Template Parameters
RectTyperectangle type

Definition at line 199 of file Geometry.h.

Member Function Documentation

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
xl,yl,xh,yhcoordinates
Returns
rectangle object

Definition at line 221 of file Geometry.h.

template<typename RectType >
static coordinate_type limbo::geometry::rectangle_traits< RectType >::get ( rectangle_type const &  rectangle,
direction_2d const &  direct 
)
inlinestatic

get coordinate from rectangle

Parameters
rectanglea rectangle object
directdirection
Returns
coordinate

Definition at line 210 of file Geometry.h.

template<typename RectType >
static void limbo::geometry::rectangle_traits< RectType >::set ( rectangle_type &  rectangle,
direction_2d const &  direct,
coordinate_type const &  v 
)
inlinestatic

set coordinate for rectangle

Parameters
rectanglea rectangle object
directdirection
vcoordinate

Definition at line 216 of file Geometry.h.


The documentation for this class was generated from the following file: