eckit::geo::PointXYZ class final

The PointXYZ class.

A point on three-dimensional space, in (X, Y, Z) coordinates, linear in space.

Public types

using container_type = array

Public static variables

static size_t DIMS constexpr
static value_type EPS constexpr

Public static functions

static auto dimensions() -> size_t
static auto distance(const PointXYZ& p, const PointXYZ& q, size_t axis) -> value_type
static auto distance(const PointXYZ& p, const PointXYZ& q) -> value_type
static auto distance2(const PointXYZ& p, const PointXYZ& q) -> value_type

Constructors, destructors, conversion operators

PointXYZ()
PointXYZ(value_type x, value_type y, value_type z)
PointXYZ(const PointXYZ& other)
PointXYZ(PointXYZ&& other)
~PointXYZ() defaulted

Public functions

auto operator=(const PointXYZ& other) -> PointXYZ&
auto operator=(PointXYZ&& other) -> PointXYZ&
auto distance(const PointXYZ&, size_t axis) const -> value_type
auto distance(const PointXYZ&) const -> value_type
auto distance2(const PointXYZ&) const -> value_type
auto x(size_t axis) const -> value_type

Public variables

const value_type& X
const value_type& Y
const value_type& Z

Friends

auto operator<<(std::ostream& out, const PointXYZ& p) -> std::ostream&
auto operator-(const PointXYZ& p, const PointXYZ& q) -> PointXYZ
auto operator+(const PointXYZ& p, const PointXYZ& q) -> PointXYZ
auto operator*(const PointXYZ& p, value_type d) -> PointXYZ
auto operator==(const PointXYZ& p, const PointXYZ& q) -> bool
auto operator!=(const PointXYZ& p, const PointXYZ& q) -> bool
auto dot(const PointXYZ& p, const PointXYZ& q) -> value_type
auto cross(const PointXYZ& p, const PointXYZ& q) -> PointXYZ
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.