A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid. A pyramid is constructed from a base polygon and an apex point. More...
Public Types | |
typedef Point | point_type |
The point type. More... | |
Public Member Functions | |
pyramid (PolygonRef base, const Point &apex) | |
Construct from base polygon and apex point. More... | |
pyramid (Istream &is) | |
Construct from Istream. More... | |
const Point & | apex () const |
The apex point. More... | |
PolygonRef | base () const |
The base polygon. More... | |
Point | centre (const UList< point > &points) const |
Return centre (centroid) More... | |
vector | height (const UList< point > &points) const |
Return height vector. More... | |
scalar | mag (const UList< point > &points) const |
Return scalar magnitude - returns volume of pyramid. More... | |
Friends | |
Istream & | operator>> (Istream &is, pyramid &p) |
Ostream & | operator (Ostream &os, const pyramid &p) |
A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid. A pyramid is constructed from a base polygon and an apex point.
typedef Point point_type |
Construct from base polygon and apex point.
Definition at line 27 of file pyramidI.H.
Construct from Istream.
Definition at line 38 of file pyramidI.H.
|
inline |
Return scalar magnitude - returns volume of pyramid.
Definition at line 69 of file pyramidI.H.
References points.