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

#include <predicate_objects_on_points_2.h>

Public Types

typedef R::RT RT
 
typedef R::Direction_2 Direction
 
typedef R::Point_2 Point
 
typedef R::Line_2 Line
 

Public Member Functions

 r_Less_in_direction (const Direction &dir)
 
bool operator() (const Point &c, const Point &d) const
 

Private Attributes

Line l
 

Detailed Description

template<class R>
class r_Less_in_direction< R >

Definition at line 417 of file predicate_objects_on_points_2.h.

Member Typedef Documentation

typedef R::Direction_2 Direction

Definition at line 421 of file predicate_objects_on_points_2.h.

typedef R::Line_2 Line

Definition at line 423 of file predicate_objects_on_points_2.h.

typedef R::Point_2 Point

Definition at line 422 of file predicate_objects_on_points_2.h.

typedef R::RT RT

Definition at line 420 of file predicate_objects_on_points_2.h.

Constructor & Destructor Documentation

r_Less_in_direction ( const Direction dir)
inline

Definition at line 425 of file predicate_objects_on_points_2.h.

Member Function Documentation

bool operator() ( const Point c,
const Point d 
) const
inline

Definition at line 430 of file predicate_objects_on_points_2.h.

References EQUAL, r_Less_in_direction< R >::l, LARGER, and lexicographically_xy_smaller().

431  {
432  Comparison_result res = cmp_signed_dist_to_line(l, c, d);
433  if ( res == LARGER )
434  {
435  return true;
436  }
437  else if ( res == EQUAL )
438  {
439  return lexicographically_xy_smaller( c, d) ;
440  }
441  else
442  {
443  return false;
444  }
445  }
const NT & d
bool lexicographically_xy_smaller(const Point_2< R > &p, const Point_2< R > &q)
Comparison_result
Definition: enum.h:94
Definition: enum.h:98
Definition: enum.h:97

Here is the call graph for this function:

Member Data Documentation

Line l
private

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