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

#include <predicate_objects_on_points_2.h>

Public Types

typedef R::Point_2 Point
 
typedef R::Line_2 Line
 

Public Member Functions

 r_Less_dist_to_line (const Point &a, const Point &b)
 
bool operator() (const Point &c, const Point &d) const
 

Private Attributes

Line l_ab
 

Detailed Description

template<class R>
class r_Less_dist_to_line< R >

Definition at line 386 of file predicate_objects_on_points_2.h.

Member Typedef Documentation

typedef R::Line_2 Line

Definition at line 390 of file predicate_objects_on_points_2.h.

typedef R::Point_2 Point

Definition at line 389 of file predicate_objects_on_points_2.h.

Constructor & Destructor Documentation

r_Less_dist_to_line ( const Point a,
const Point b 
)
inline

Definition at line 391 of file predicate_objects_on_points_2.h.

392  : l_ab( a, b )
393  {}

Member Function Documentation

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

Definition at line 395 of file predicate_objects_on_points_2.h.

References EQUAL, r_Less_dist_to_line< R >::l_ab, lexicographically_xy_smaller(), and SMALLER.

396  {
397  Comparison_result res = cmp_signed_dist_to_line(l_ab, c, d);
398  if ( res == SMALLER )
399  {
400  return true;
401  }
402  else if ( res == EQUAL )
403  {
404  return lexicographically_xy_smaller( c, d );
405  }
406  else
407  {
408  return false;
409  }
410  }
const NT & d
bool lexicographically_xy_smaller(const Point_2< R > &p, const Point_2< R > &q)
Definition: enum.h:96
Comparison_result
Definition: enum.h:94
Definition: enum.h:97

Here is the call graph for this function:

Member Data Documentation

Line l_ab
private

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