Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
limbo::geometry::point_compare_type Class Reference

sort helper if orient == HORIZONTAL, sort by left lower if orient == VERTICAL, sort by lower left More...

#include <Polygon2Rectangle.h>

Public Member Functions

 point_compare_type ()
 
 point_compare_type (orientation_2d const &ori)
 
template<typename PointType >
bool operator() (PointType const &p1, PointType const &p2) const
 compare two points at specific orientation More...
 

Public Attributes

orientation_2d m_orient
 orientation, HORIZONTAL or VERTICAL
 

Detailed Description

sort helper if orient == HORIZONTAL, sort by left lower if orient == VERTICAL, sort by lower left

Definition at line 50 of file Polygon2Rectangle.h.

Constructor & Destructor Documentation

limbo::geometry::point_compare_type::point_compare_type ( )
inline

constructor

Definition at line 57 of file Polygon2Rectangle.h.

limbo::geometry::point_compare_type::point_compare_type ( orientation_2d const &  ori)
inline

constructor

Parameters
oriorientation

Definition at line 62 of file Polygon2Rectangle.h.

Member Function Documentation

template<typename PointType >
bool limbo::geometry::point_compare_type::operator() ( PointType const &  p1,
PointType const &  p2 
) const
inline

compare two points at specific orientation

Template Parameters
PointTypepoint type
Parameters
p1a point
p2a point
Returns
true if (orient == HORIZONTAL and p1 is in the left lower of p2) or (orient == VERTICAL and p1 is in the lower left of p2)

Definition at line 72 of file Polygon2Rectangle.h.


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