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

#include <predicate_objects_on_points_2.h>

Public Member Functions

 p_Less_rotate_ccw_E (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_E< Point >

Definition at line 270 of file predicate_objects_on_points_2.h.

Constructor & Destructor Documentation

p_Less_rotate_ccw_E ( const Point &  p)
inline

Definition at line 273 of file predicate_objects_on_points_2.h.

274  : rot_point(p)
275  {}

Member Function Documentation

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

Definition at line 277 of file predicate_objects_on_points_2.h.

References has_larger_dist_to_point(), LEFTTURN, orientation(), RIGHTTURN, and p_Less_rotate_ccw_E< Point >::rot_point.

278  {
279  Orientation ori = orientation(rot_point, p, q);
280  if ( ori == LEFTTURN )
281  {
282  return true;
283  }
284  else if ( ori == RIGHTTURN )
285  {
286  return false;
287  }
288  else
289  {
290  return has_larger_dist_to_point( rot_point, p, q) ;
291  }
292  }
const Orientation LEFTTURN
Definition: enum.h:66
CGAL_KERNEL_LARGE_INLINE bool has_larger_dist_to_point(const PointS3< FT > &p, const PointS3< FT > &q, const PointS3< FT > &r)
Sign
Definition: enum.h:57
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: