Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
p_Less_rotate_ccw_safer< Point > Class Template Reference

#include <predicate_objects_on_points_2.h>

Public Member Functions

 p_Less_rotate_ccw_safer (const Point &p)
 
bool operator() (const Point &p, const Point &q) const
 
void set_rotation_center (const Point &p)
 

Private Attributes

Point rot_point
 

Detailed Description

template<class Point>
class p_Less_rotate_ccw_safer< Point >

Definition at line 234 of file predicate_objects_on_points_2.h.

Constructor & Destructor Documentation

p_Less_rotate_ccw_safer ( const Point &  p)
inline

Definition at line 237 of file predicate_objects_on_points_2.h.

Member Function Documentation

bool operator() ( const Point &  p,
const Point &  q 
) const
inline

Definition at line 241 of file predicate_objects_on_points_2.h.

References collinear_are_ordered_along_line(), LEFTTURN, orientation(), RIGHTTURN, and p_Less_rotate_ccw_safer< Point >::rot_point.

242  {
243  if (p == rot_point) return false;
244  if (q == rot_point) return true;
245  if (p == q) return false;
246  Orientation ori = orientation(rot_point, p, q);
247  if ( ori == LEFTTURN )
248  {
249  return true;
250  }
251  else if ( ori == RIGHTTURN )
252  {
253  return false;
254  }
255  else
256  {
258  }
259  }
const Orientation LEFTTURN
Definition: enum.h:66
Sign
Definition: enum.h:57
bool collinear_are_ordered_along_line(const Point_2< R > &p, const Point_2< R > &q, const Point_2< R > &r)
Orientation orientation(const Point_2< R > &p, const Point_2< R > &q, const Point_2< R > &r)
NT q
const Orientation RIGHTTURN
Definition: enum.h:67

Here is the call graph for this function:

void set_rotation_center ( const Point &  p)
inline

Member Data Documentation


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