47 template<
class Po
int,
class Po
intRef,
class polygonRef>
50 template<
class Po
int,
class Po
intRef,
class polygonRef>
57 template<
class Po
int,
class Po
intRef,
class polygonRef>
69 template<
class Po
int,
class Po
intRef,
class polygonRef>
94 inline const Point&
apex()
const;
97 inline polygonRef
base()
const;
114 friend Istream&
operator>> <Point, PointRef, polygonRef>
120 friend Ostream& operator<< <Point, PointRef, polygonRef>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar mag(const pointField &points) const
Return scalar magnitude - returns volume of pyramid.
polygonRef base() const
Return base polygon.
const Point & apex() const
Return apex point.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
vector height(const pointField &points) const
Return height vector.
Point centre(const pointField &points) const
Return centre (centroid)
pyramid(polygonRef base, const Point &apex)
Construct from base polygon and apex point.
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.