Limbo 3.5.4
Loading...
Searching...
No Matches
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
static void set (rectangle_type &rectangle, direction_2d const &direct, coordinate_type const &v)
 set coordinate for rectangle
static rectangle_type construct (coordinate_type const &xl, coordinate_type const &yl, coordinate_type const &xh, coordinate_type const &yh)
 construct rectangle from coordinates

Detailed Description

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

type traits for rectangle

Template Parameters
RectTyperectangle type

Definition at line 226 of file Geometry.h.

Member Typedef Documentation

◆ coordinate_type

template<typename RectType>
typedef rectangle_type::coordinate_type limbo::geometry::rectangle_traits< RectType >::coordinate_type

Definition at line 230 of file Geometry.h.

◆ rectangle_type

template<typename RectType>
typedef RectType limbo::geometry::rectangle_traits< RectType >::rectangle_type

Definition at line 229 of file Geometry.h.

Member Function Documentation

◆ construct()

template<typename RectType>
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 248 of file Geometry.h.

◆ get()

template<typename RectType>
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 237 of file Geometry.h.

◆ set()

template<typename RectType>
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 243 of file Geometry.h.


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