ESyS-Particle
4.0.1
|
abstract base class for edges in mesh (2D or 3D) More...
#include <AEdge.h>
Public Member Functions | |
AEdge (const Vec3 &, const Vec3 &) | |
double | sep (const Vec3 &) const |
pair< bool, double > | dist (const Vec3 &) const |
Vec3 | getBoundingBoxMin () const |
Vec3 | getBoundingBoxMax () const |
Protected Attributes | |
Vec3 | m_p0 |
Vec3 | m_p1 |
abstract base class for edges in mesh (2D or 3D)
AEdge::AEdge | ( | const Vec3 & | v0, |
const Vec3 & | v1 | ||
) |
construct Edge from corner coordinates.
v0 | first corner |
v1 | second corner |
pair< bool, double > AEdge::dist | ( | const Vec3 & | p | ) | const |
Get perpendicular distance between point and edge. If the closest point on the supportung line is outside the edge, the first component of the return value is "false", otherwise "true"
p | the point |
Referenced by EEdge2DInteraction::calcForces(), and EEdgeInteraction::calcForces().
Vec3 AEdge::getBoundingBoxMax | ( | ) | const |
Get max. corner of axis-aligned bounding box
Reimplemented in Edge.
Vec3 AEdge::getBoundingBoxMin | ( | ) | const |
Get min. corner of axis-aligned bounding box
Reimplemented in Edge.
double AEdge::sep | ( | const Vec3 & | p | ) | const |
get distance between point and closest point along edge (incl. corners)
p | the point |