|
| | PDRectangle (const pVec &p0, const pVec &u0, const pVec &v0) |
| |
| void | PDRectangle_Cons (const pVec &p0, const pVec &u0, const pVec &v0) |
| |
| bool | Within (const pVec &pos) const |
| | Returns true for points within epsilon of the patch. More...
|
| |
| pVec | Generate () const |
| | Returns a random point in the diamond-shaped patch whose corners are o, o+u, o+u+v, and o+v. More...
|
| |
| float | Size () const |
| | Returns the size of the domain (length, area, or volume). More...
|
| |
| std::shared_ptr< pDomain > | copy () const |
| |
| virtual bool | Within (const pVec &) const =0 |
| | Returns true if the given point is within the domain. More...
|
| |
| virtual pVec | Generate () const =0 |
| | Returns a random point in the domain. More...
|
| |
| virtual float | Size () const =0 |
| | Returns the size of the domain (length, area, or volume). More...
|
| |
| virtual std::shared_ptr< pDomain > | copy () const =0 |
| |
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.