eckit::geo::PointXY class final

The PointXY class.

A point on two-dimensional space, in (X, Y) 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 norm(const PointXY& p) -> value_type
static auto normalize(const PointXY& p) -> PointXY
static auto middle(const PointXY& p, const PointXY& q) -> PointXY
static auto distance(const PointXY& p, const PointXY& q, size_t axis) -> value_type
static auto distance(const PointXY& p, const PointXY& q) -> value_type
static auto distance2(const PointXY& p, const PointXY& q) -> value_type

Constructors, destructors, conversion operators

PointXY()
PointXY(value_type x, value_type y)
PointXY(const PointXY& other)
PointXY(PointXY&& other)
~PointXY() defaulted

Public functions

auto operator=(const PointXY& other) -> PointXY&
auto operator=(PointXY&& other) -> PointXY&
auto norm() const -> value_type
auto normalize() const -> PointXY
auto middle(const PointXY&) const -> PointXY
auto distance(const PointXY&, size_t axis) const -> value_type
auto distance(const PointXY&) const -> value_type
auto distance2(const PointXY&) const -> value_type
auto x(size_t axis) const -> value_type

Public variables

const value_type& X
const value_type& Y

Friends

auto operator<<(std::ostream& out, const PointXY& p) -> std::ostream&
auto operator-(const PointXY& p, const PointXY& q) -> PointXY
auto operator+(const PointXY& p, const PointXY& q) -> PointXY
auto operator*(const PointXY& p, value_type d) -> PointXY
auto operator==(const PointXY& p, const PointXY& q) -> bool
auto operator!=(const PointXY& p, const PointXY& q) -> bool
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.