Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
r_Less_negative_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_negative_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_negative_dist_to_line< R >

Definition at line 354 of file predicate_objects_on_points_2.h.

Member Typedef Documentation

typedef R::Line_2 Line

Definition at line 358 of file predicate_objects_on_points_2.h.

typedef R::Point_2 Point

Definition at line 357 of file predicate_objects_on_points_2.h.

Constructor & Destructor Documentation

r_Less_negative_dist_to_line ( const Point a,
const Point b 
)
inline

Definition at line 359 of file predicate_objects_on_points_2.h.

361  : l_ab( a, b )
362  {}

Member Function Documentation

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

Definition at line 364 of file predicate_objects_on_points_2.h.

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

365  {
366  Comparison_result res = cmp_signed_dist_to_line(l_ab, c, d);
367  if ( res == SMALLER )
368  {
369  return false;
370  }
371  else if ( res == EQUAL )
372  {
373  return lexicographically_xy_smaller( c, d );
374  }
375  else
376  {
377  return true;
378  }
379  }
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: