Easy3D 2.5.3
GenericOrientedLine< FT > Class Template Reference

OrientedLine implements plucker coordinates, which enables oriented lines to be compared. More...

#include <easy3d/core/oriented_line.h>

Public Types

typedef Vec< 3, FT > Point
 

Public Member Functions

 GenericOrientedLine (const Point &p, const Point &q)
 Constructs a line from two points p and q.
 

Static Public Member Functions

static Sign side (const GenericOrientedLine< FT > &a, const GenericOrientedLine< FT > &b)
 

Detailed Description

template<class FT>
class easy3d::GenericOrientedLine< FT >

OrientedLine implements plucker coordinates, which enables oriented lines to be compared.

The comparison, implemented by the side() function, is a predicate similar to the right hand rule. For instance, this class is used for the line-polygon intersection test. (See D.M.Y. Sommerville, Analytical Geometry of Three Dimensions. Cambridge University Press, 1959).

Member Function Documentation

◆ side()

Sign side ( const GenericOrientedLine< FT > &  a,
const GenericOrientedLine< FT > &  b 
)
inlinestatic

"right hand rule" like predicate.

Returns
  • +1 Positive side
  • -1 for negative side.

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