|
|
|
pyramid Class Template ReferenceCollaboration diagram for pyramid:![]() Detailed Descriptiontemplate<class Point, class PointRef, class polygonRef>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| pyramid (polygonRef base, const Point &apex) | |
| Construct from base polygon and apex point. | |
| pyramid (Istream &) | |
| Construct from Istream. | |
| const Point & | apex () const |
| Return apex point. | |
| polygonRef | base () const |
| Return base polygon. | |
| Point | centre (const pointField &points) const |
| Return centre (centroid). | |
| vector | height (const pointField &points) const |
| Return height vector. | |
| scalar | mag (const pointField &points) const |
| Return scalar magnitude - returns volume of pyramid. | |
Friends | |
| Istream & | operator>> (Istream &, pyramid &) |
| Ostream & | operator (Ostream &, const pyramid &) |
| pyramid | ( | polygonRef | base, | |
| const Point & | apex | |||
| ) | [inline] |
Construct from base polygon and apex point.
Definition at line 48 of file pyramidI.H.
References IOstream::check().
Here is the call graph for this function:

| const Point & apex | ( | ) | const [inline] |
| polygonRef base | ( | ) | const [inline] |
| Point centre | ( | const pointField & | points | ) | const [inline] |
| vector height | ( | const pointField & | points | ) | const [inline] |
| scalar mag | ( | const pointField & | points | ) | const [inline] |
Return scalar magnitude - returns volume of pyramid.
Definition at line 104 of file pyramidI.H.
References p.