ESyS-Particle  4.0.1
Public Member Functions | List of all members
RectPatch Class Reference

Public Member Functions

 RectPatch (double, double, double, double, double, double)
double sep (const Vec3 &)
double dist (const Vec3 &)
bool intersect (const Vec3 &, const Vec3 &)
Plane getPlane (const Vec3 &)
Vec3 getBasePoint () const

Constructor & Destructor Documentation

RectPatch::RectPatch ( double  xmin,
double  xmax,
double  zmin,
double  zmax,
double  y0,
double  dy 
)

construct a axis aligned rectangular patch in the x-z plane

Parameters
xminmin. x-pos
xmaxmax. x-pos
zminmin. z-pos
zmaxmax. z-pos
z0z-pos
dz"roughness" parameter

Member Function Documentation

double RectPatch::dist ( const Vec3 P)

Get distance from given point to closest point of patch.

Parameters
Pthe point

References sep().

Here is the call graph for this function:

Plane RectPatch::getPlane ( const Vec3 P)

get the plane further away from the given point

Referenced by CRoughPaddedBlock3D::getClosestPlane().

Here is the caller graph for this function:

bool RectPatch::intersect ( const Vec3 P1,
const Vec3 P2 
)

check if line between 2 points intersects patch

Parameters
P11st point
P22nd point
double RectPatch::sep ( const Vec3 P)

Get (perpendicular) distance from given point. If projection of point onto plane is outside patch return -1

Parameters
Pthe point

Referenced by dist(), CRoughPaddedBlock3D::getClosestPatch(), and CRoughPaddedBlock3D::getClosestPlane().

Here is the caller graph for this function:


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