Helper extractor for point coordinates. More...
#include <SpacePartition.h>
Helper extractor for point coordinates.
Point | type of point structure |
The mandatory interface is:
static T x(Point const& point)
: return x coordinate of pointstatic T y(Point const& point)
: return y coordinate of pointstatic T z(Point const& point)
: return z coordinate of pointThe type T must be convertible to a number (typically a real one). Examples of specialisation:
The argument of the function just needs to be something the template argument can be converted into: in the second example, the argument of X
is not required to br exactly SpaceTime_t const* const&
.
Definition at line 86 of file SpacePartition.h.