PDRectangle Class Reference

Rhombus-shaped planar region. More...

#include <pDomain.h>

Inheritance diagram for PDRectangle:

pDomain

List of all members.


Public Member Functions

  PDRectangle (const pVec &p0, const pVec &u0, const pVec &v0)
bool  Within (const pVec &pos) const
  Returns true for points within epsilon of the patch.
pVec  Generate () const
  Returns a random point in the diamond-shaped patch whose corners are o, o+u, o+u+v, and o+v.
float  Size () const
  Returns the size of the domain (length, area, or volume).
pDomain copy () const

Public Attributes

pVec  p
pVec  u
pVec  v
pVec  uNrm
pVec  vNrm
pVec  nrm
pVec  s1
pVec  s2
float  uLen
float  vLen
float  D
float  area

Detailed Description

Rhombus-shaped planar region.

p0 is a point on the plane. u0 and v0 are (non-parallel) basis vectors in the plane. They don't need to be normal or orthogonal.

Generate returns a random point in the diamond-shaped patch whose corners are o, o+u, o+u+v, and o+v. Within returns true for points within epsilon of the patch.


Generated on Tue Dec 30 11:28:40 2008 for ParticleAPI by  doxygen 1.5.8