Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::geometry::rectangle_traits< Rectangle > Struct Reference

if your rectangle class setting is different from that in the default point_traits, please create a specialization More...

Public Types

typedef Rectangle rectangle_type
 rectangle type
typedef int coordinate_type
 coordinate type
typedef Rectangle rectangle_type
 rectangle type
typedef uint64_t coordinate_type
 coordinate type

Static Public Member Functions

static coordinate_type get (const rectangle_type &rect, direction_2d dir)
 access coordinates
static void set (rectangle_type &rect, direction_2d dir, coordinate_type value)
 set coordinates
static rectangle_type construct (coordinate_type xl, coordinate_type yl, coordinate_type xh, coordinate_type yh)
 construct rectangle
static coordinate_type get (const rectangle_type &rect, direction_2d dir)
 access coordinates
static void set (rectangle_type &rect, direction_2d dir, coordinate_type value)
 set coordinates
static rectangle_type construct (coordinate_type xl, coordinate_type yl, coordinate_type xh, coordinate_type yh)
 construct rectangle

Detailed Description

if your rectangle class setting is different from that in the default point_traits, please create a specialization

Definition at line 172 of file test_p2r.cpp.

Member Typedef Documentation

◆ coordinate_type [1/2]

typedef int limbo::geometry::rectangle_traits< Rectangle >::coordinate_type

coordinate type

Definition at line 177 of file test_p2r.cpp.

◆ coordinate_type [2/2]

typedef uint64_t limbo::geometry::rectangle_traits< Rectangle >::coordinate_type

coordinate type

Definition at line 177 of file test_uint64.cpp.

◆ rectangle_type [1/2]

rectangle type

Definition at line 175 of file test_p2r.cpp.

◆ rectangle_type [2/2]

rectangle type

Definition at line 175 of file test_uint64.cpp.

Member Function Documentation

◆ construct() [1/2]

construct rectangle

Parameters
xl,yl,xh,yhcoordinates of rectangle
Returns
a rectangle object

Definition at line 218 of file test_p2r.cpp.

◆ construct() [2/2]

construct rectangle

Parameters
xl,yl,xh,yhcoordinates of rectangle
Returns
a rectangle object

Definition at line 218 of file test_uint64.cpp.

◆ get() [1/2]

coordinate_type limbo::geometry::rectangle_traits< Rectangle >::get ( const rectangle_type & rect,
direction_2d dir )
inlinestatic

access coordinates

Parameters
recta rectangle object
dircan be LEFT (xl), BOTTOM (yl), RIGHT (xh) or TOP (yh)
Returns
coordinate

Definition at line 185 of file test_p2r.cpp.

◆ get() [2/2]

coordinate_type limbo::geometry::rectangle_traits< Rectangle >::get ( const rectangle_type & rect,
direction_2d dir )
inlinestatic

access coordinates

Parameters
recta rectangle object
dircan be LEFT (xl), BOTTOM (yl), RIGHT (xh) or TOP (yh)
Returns
coordinate

Definition at line 185 of file test_uint64.cpp.

◆ set() [1/2]

void limbo::geometry::rectangle_traits< Rectangle >::set ( rectangle_type & rect,
direction_2d dir,
coordinate_type value )
inlinestatic

set coordinates

Parameters
recta rectangle object
dircan be LEFT (xl), BOTTOM (yl), RIGHT (xh) or TOP (yh)
valuecoordinate value

Definition at line 202 of file test_p2r.cpp.

◆ set() [2/2]

void limbo::geometry::rectangle_traits< Rectangle >::set ( rectangle_type & rect,
direction_2d dir,
coordinate_type value )
inlinestatic

set coordinates

Parameters
recta rectangle object
dircan be LEFT (xl), BOTTOM (yl), RIGHT (xh) or TOP (yh)
valuecoordinate value

Definition at line 202 of file test_uint64.cpp.


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