32 template<
class Po
int,
class Po
intRef,
class PolygonRef>
44 template<
class Po
int,
class Po
intRef,
class PolygonRef>
53 template<
class Po
int,
class Po
intRef,
class PolygonRef>
59 return (3.0/4.0)*base_.centre(
points) + (1.0/4.0)*apex_;
63 template<
class Po
int,
class Po
intRef,
class PolygonRef>
70 return (apex_ - base_.centre(
points));
74 template<
class Po
int,
class Po
intRef,
class PolygonRef>
80 return (1.0/3.0)*(base_.areaNormal(
points) & (height(
points)));
86 template<
class Po
int,
class Po
intRef,
class PolygonRef>
90 pyramid<Point, PointRef, PolygonRef>&
p 93 is >>
p.base_ >>
p.apex_;
99 template<
class Po
int,
class Po
intRef,
class PolygonRef>
103 const pyramid<Point, PointRef, PolygonRef>&
p pyramid(PolygonRef base, const Point &apex)
Construct from base polygon and apex point.
scalar mag(const UList< point > &points) const
Return scalar magnitude - returns volume of pyramid.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
constexpr char tab
The tab '\t' character(0x09)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
vector height(const UList< point > &points) const
Return height vector.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
Point centre(const UList< point > &points) const
Return centre (centroid)