ESyS-Particle  4.0.1
Public Member Functions | Protected Attributes | List of all members
AEdge Class Reference

abstract base class for edges in mesh (2D or 3D) More...

#include <AEdge.h>

Inheritance diagram for AEdge:
Inheritance graph
[legend]
Collaboration diagram for AEdge:
Collaboration graph
[legend]

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

Detailed Description

abstract base class for edges in mesh (2D or 3D)

Author
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

AEdge::AEdge ( const Vec3 v0,
const Vec3 v1 
)

construct Edge from corner coordinates.

Parameters
v0first corner
v1second corner

Member Function Documentation

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"

Parameters
pthe point

Referenced by EEdge2DInteraction::calcForces(), and EEdgeInteraction::calcForces().

Here is the caller graph for this function:

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)

Parameters
pthe point

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