Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
r_Right_of_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_Right_of_line (const Point &a, const Point &b)
 
bool operator() (const Point &c) const
 

Private Attributes

Line l_ab
 

Detailed Description

template<class R>
class r_Right_of_line< R >

Definition at line 303 of file predicate_objects_on_points_2.h.

Member Typedef Documentation

typedef R::Line_2 Line

Definition at line 307 of file predicate_objects_on_points_2.h.

typedef R::Point_2 Point

Definition at line 306 of file predicate_objects_on_points_2.h.

Constructor & Destructor Documentation

r_Right_of_line ( const Point a,
const Point b 
)
inline

Definition at line 308 of file predicate_objects_on_points_2.h.

309  : l_ab( a, b )
310  {}

Member Function Documentation

bool operator() ( const Point c) const
inline

Definition at line 313 of file predicate_objects_on_points_2.h.

References r_Right_of_line< R >::l_ab, and ON_NEGATIVE_SIDE.

314  {
315  if ( l_ab.is_degenerate() ) return false;
316  return (l_ab.oriented_side(c) == ON_NEGATIVE_SIDE);
317  }

Member Data Documentation

Line l_ab
private

Definition at line 320 of file predicate_objects_on_points_2.h.

Referenced by r_Right_of_line< R >::operator()().


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