PointCartesian Module¶
Module Contents¶
-
template<std::size_t Dimension>
class PointCartesian : public tracktable::PointBase<Dimension>¶ N-dimensional point in Cartesian space.
This specializes PointBase to exist in a Cartesian coordinate system and be usable with
boost::geometry. You must still instantiate it explicitly with the number of dimensions.Public Functions
-
inline PointCartesian()¶
Create an uninitialized point.
-
inline ~PointCartesian()¶
Destructor for a point.
-
inline PointCartesian(Superclass const &other)¶
Make this point into a copy of another.
- Parameters:
other – [in] Point we want to copy
-
inline PointCartesian(const double *coordinates)¶
Create a point with user-supplied coordinates.
Populate the point from an array of coordinates. The caller is responsible for ensuring that the array is large enough to contain the right number of coordinates.
- Parameters:
coordinates – [in] Coordinates to use when creating a point
-
inline std::string to_string() const¶
Convert point coordinates to a string.
- Returns:
Coordinates string
-
inline PointCartesian()¶