Limbo 3.5.4
Loading...
Searching...
No Matches
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

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

◆ point_compare_type() [1/2]

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

constructor

Definition at line 57 of file Polygon2Rectangle.h.

◆ point_compare_type() [2/2]

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

◆ operator()()

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.

Member Data Documentation

◆ m_orient

orientation_2d limbo::geometry::point_compare_type::m_orient

orientation, HORIZONTAL or VERTICAL

Definition at line 52 of file Polygon2Rectangle.h.


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