NuTo
Numerics Tool
Public Member Functions | List of all members
Edge Class Reference

#include <DelaunayVoronoi.h>

Public Member Functions

 Edge ()
 
 Edge (Eigen::Vector2d rP0, Eigen::Vector2d rP1)
 
const Eigen::Vector2d P0 () const
 
const Eigen::Vector2d P1 () const
 
bool operator== (const Edge &rOther) const
 
bool Contains (Eigen::Vector2d rPoint) const
 
void Info () const
 
size_t GetHash () const
 
double GetIntersectionLineParameter (const Eigen::Vector2d rPoint, const Eigen::Vector2d rDirection) const
 returns the line parameter l of the line rPoint + l * rDirection where the line intersects with the edge. More...
 
double GetDistance (Eigen::Vector2d rPoint) const
 calculates the (perpendicular) distance of rPoint to the edge More...
 

Constructor & Destructor Documentation

Edge::Edge ( )
inline
Edge::Edge ( Eigen::Vector2d  rP0,
Eigen::Vector2d  rP1 
)
inline

Member Function Documentation

bool Edge::Contains ( Eigen::Vector2d  rPoint) const
inline
double Edge::GetDistance ( Eigen::Vector2d  rPoint) const
inline

calculates the (perpendicular) distance of rPoint to the edge

size_t Edge::GetHash ( ) const
inline
double Edge::GetIntersectionLineParameter ( const Eigen::Vector2d  rPoint,
const Eigen::Vector2d  rDirection 
) const
inline

returns the line parameter l of the line rPoint + l * rDirection where the line intersects with the edge.

Returns -1 if there is no intersection.

void Edge::Info ( ) const
inline
bool Edge::operator== ( const Edge rOther) const
inline
const Eigen::Vector2d Edge::P0 ( ) const
inline
const Eigen::Vector2d Edge::P1 ( ) const
inline

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