Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::geometry::point_traits< Point > Struct Reference

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

Public Types

typedef Point point_type
 point type
typedef int coordinate_type
 coordinate type
typedef Point point_type
 point type
typedef uint64_t coordinate_type
 coordinate type

Static Public Member Functions

static coordinate_type get (const point_type &point, orientation_2d orient)
 access coordinates
static void set (point_type &point, orientation_2d orient, coordinate_type value)
 set coordinates
static point_type construct (coordinate_type x, coordinate_type y)
 construct a point object
static coordinate_type get (const point_type &point, orientation_2d orient)
 access coordinates
static void set (point_type &point, orientation_2d orient, coordinate_type value)
 set coordinates
static point_type construct (coordinate_type x, coordinate_type y)
 construct a point object

Detailed Description

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

The specialization should be in the same scope as the original template struct

Definition at line 60 of file test_p2r.cpp.

Member Typedef Documentation

◆ coordinate_type [1/2]

typedef int limbo::geometry::point_traits< Point >::coordinate_type

coordinate type

Definition at line 65 of file test_p2r.cpp.

◆ coordinate_type [2/2]

typedef uint64_t limbo::geometry::point_traits< Point >::coordinate_type

coordinate type

Definition at line 65 of file test_uint64.cpp.

◆ point_type [1/2]

typedef Point limbo::geometry::point_traits< Point >::point_type

point type

Definition at line 63 of file test_p2r.cpp.

◆ point_type [2/2]

typedef Point limbo::geometry::point_traits< Point >::point_type

point type

Definition at line 63 of file test_uint64.cpp.

Member Function Documentation

◆ construct() [1/2]

construct a point object

Parameters
xx coordinate
yy coordinate
Returns
the point object

Definition at line 97 of file test_p2r.cpp.

◆ construct() [2/2]

construct a point object

Parameters
xx coordinate
yy coordinate
Returns
the point object

Definition at line 97 of file test_uint64.cpp.

◆ get() [1/2]

coordinate_type limbo::geometry::point_traits< Point >::get ( const point_type & point,
orientation_2d orient )
inlinestatic

access coordinates

Parameters
pointa data point
orientorientation can be HORIZONTAL(x) or VERTICAL(y)
Returns
x or y coordinate

Definition at line 73 of file test_p2r.cpp.

◆ get() [2/2]

coordinate_type limbo::geometry::point_traits< Point >::get ( const point_type & point,
orientation_2d orient )
inlinestatic

access coordinates

Parameters
pointa data point
orientorientation can be HORIZONTAL(x) or VERTICAL(y)
Returns
x or y coordinate

Definition at line 73 of file test_uint64.cpp.

◆ set() [1/2]

void limbo::geometry::point_traits< Point >::set ( point_type & point,
orientation_2d orient,
coordinate_type value )
inlinestatic

set coordinates

Parameters
pointa data point
orientorientation can be HORIZONTAL(x) or VERTICAL(y)
valuedata value

Definition at line 85 of file test_p2r.cpp.

◆ set() [2/2]

void limbo::geometry::point_traits< Point >::set ( point_type & point,
orientation_2d orient,
coordinate_type value )
inlinestatic

set coordinates

Parameters
pointa data point
orientorientation can be HORIZONTAL(x) or VERTICAL(y)
valuedata value

Definition at line 85 of file test_uint64.cpp.


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