Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::geometry::rectangle_traits< boost::polygon::rectangle_data< T > > Struct Template Reference

specialization of limbo::geometry::rectangle_traits for boost::polygon::rectangle_data More...

#include <BoostPolygonApi.h>

Public Types

typedef T coordinate_type
typedef boost::polygon::rectangle_data< T > rectangle_type

Static Public Member Functions

static coordinate_type get (const rectangle_type &rect, direction_2d const &dir)
 get coordinate from rectangle
static void set (rectangle_type &rect, direction_2d const &dir, coordinate_type const &value)
 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 T>
struct limbo::geometry::rectangle_traits< boost::polygon::rectangle_data< T > >

specialization of limbo::geometry::rectangle_traits for boost::polygon::rectangle_data

Definition at line 71 of file BoostPolygonApi.h.

Member Typedef Documentation

◆ coordinate_type

template<typename T>
typedef T limbo::geometry::rectangle_traits< boost::polygon::rectangle_data< T > >::coordinate_type

Definition at line 74 of file BoostPolygonApi.h.

◆ rectangle_type

template<typename T>
typedef boost::polygon::rectangle_data<T> limbo::geometry::rectangle_traits< boost::polygon::rectangle_data< T > >::rectangle_type

Definition at line 75 of file BoostPolygonApi.h.

Member Function Documentation

◆ construct()

template<typename T>
rectangle_type limbo::geometry::rectangle_traits< boost::polygon::rectangle_data< T > >::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 111 of file BoostPolygonApi.h.

◆ get()

template<typename T>
coordinate_type limbo::geometry::rectangle_traits< boost::polygon::rectangle_data< T > >::get ( const rectangle_type & rect,
direction_2d const & dir )
inlinestatic

get coordinate from rectangle

Parameters
recta rectangle object
dirdirection
Returns
coordinate

Definition at line 82 of file BoostPolygonApi.h.

◆ set()

template<typename T>
void limbo::geometry::rectangle_traits< boost::polygon::rectangle_data< T > >::set ( rectangle_type & rect,
direction_2d const & dir,
coordinate_type const & value )
inlinestatic

set coordinate for rectangle

Parameters
recta rectangle object
dirdirection
valuecoordinate

Definition at line 97 of file BoostPolygonApi.h.


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