eckit::geo::Point3 class final

The Point3 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 distance(const Point3& p, const Point3& q, size_t axis) -> value_type
static auto distance(const Point3& p, const Point3& q) -> value_type
static auto distance2(const Point3& p, const Point3& q) -> value_type

Constructors, destructors, conversion operators

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

Public functions

auto operator=(const Point3& other) -> Point3&
auto operator=(Point3&& other) -> Point3&
auto distance(const Point3&, size_t axis) const -> value_type
auto distance(const Point3&) const -> value_type
auto distance2(const Point3&) 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 Point3& p) -> std::ostream&
auto operator-(const Point3& p, const Point3& q) -> Point3
auto operator+(const Point3& p, const Point3& q) -> Point3
auto operator*(const Point3& p, value_type d) -> Point3
auto operator==(const Point3& p, const Point3& q) -> bool
auto operator!=(const Point3& p, const Point3& q) -> bool