Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::geometry::point_traits< PointType > Class Template Reference

type traits for point More...

#include <Geometry.h>

Public Types

typedef PointType point_type
typedef point_type::coordinate_type coordinate_type

Static Public Member Functions

static coordinate_type get (const point_type &point, orientation_2d const &orient)
 get coordinate from point
static void set (point_type &point, orientation_2d const &orient, coordinate_type const &value)
 set coordinate for point
static point_type construct (coordinate_type const &x, coordinate_type const &y)
 construct point from coordinates

Detailed Description

template<typename PointType>
class limbo::geometry::point_traits< PointType >

type traits for point

Template Parameters
PointTypepoint type

Definition at line 195 of file Geometry.h.

Member Typedef Documentation

◆ coordinate_type

template<typename PointType>
typedef point_type::coordinate_type limbo::geometry::point_traits< PointType >::coordinate_type

Definition at line 199 of file Geometry.h.

◆ point_type

template<typename PointType>
typedef PointType limbo::geometry::point_traits< PointType >::point_type

Definition at line 198 of file Geometry.h.

Member Function Documentation

◆ construct()

template<typename PointType>
point_type limbo::geometry::point_traits< PointType >::construct ( coordinate_type const & x,
coordinate_type const & y )
inlinestatic

construct point from coordinates

Parameters
xcoordinate
ycoordinate
Returns
point object

Definition at line 218 of file Geometry.h.

◆ get()

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

get coordinate from point

Parameters
pointa point object
orientorientation
Returns
coordinate

Definition at line 206 of file Geometry.h.

◆ set()

template<typename PointType>
void limbo::geometry::point_traits< PointType >::set ( point_type & point,
orientation_2d const & orient,
coordinate_type const & value )
inlinestatic

set coordinate for point

Parameters
pointa point object
orientorientation
valuecoordinate value

Definition at line 212 of file Geometry.h.


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