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)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid....
const Point & apex() const
Return apex point.
polygonRef base() const
Return base polygon.
scalar mag(const pointField &points) const
Return scalar magnitude - returns volume of pyramid.
pyramid(polygonRef base, const Point &apex)
Construct from base polygon and apex point.
vector height(const pointField &points) const
Return height vector.
Point centre(const pointField &points) const
Return centre (centroid)