atlas::PointXY class

Point in arbitrary XY-coordinate system.

Base classes

class eckit::geometry::Point2

Public static variables

static const size_t DIMS

Public static functions

static auto dimensions() -> size_t
static auto distance(const KPoint& p1, const KPoint& p2) -> double
static auto distance(const KPoint& p1, const KPoint& p2, unsigned int axis) -> double
static auto distance2(const KPoint& p1, const KPoint& p2) -> double
static auto equal(const KPoint& p1, const KPoint& p2) -> bool
static auto norm(const KPoint& p1) -> double
static auto dot(const KPoint& p1, const KPoint& p2) -> double
static auto add(const KPoint& p1, const KPoint& p2) -> KPoint
static auto middle(const KPoint& p1, const KPoint& p2) -> KPoint
static auto sub(const KPoint& p1, const KPoint& p2) -> KPoint
static auto mul(const KPoint& p, double m) -> KPoint
static auto div(const KPoint& p, double m) -> KPoint
static auto componentsMin(const KPoint& p1, const KPoint& p2) -> KPoint
static auto componentsMax(const KPoint& p1, const KPoint& p2) -> KPoint
static auto normalize(const KPoint& p) -> KPoint
static auto mean(const Container& points) -> Container::value_type
static auto symetrical(const KPoint& w, const KPoint& c) -> KPoint
static void normalizeAll(Container& c, KPoint& offset, KPoint& scale)

Constructors, destructors, conversion operators

PointXY()
PointXY(std::initializer_list<double> list)
PointXY(const array_t& arr)
Point2()
Point2(const BasePoint& p)
Point2(const double* p)
Point2(double x, double y)
operator eckit::Value() const

Public functions

auto x() const -> double
auto y() const -> double
auto x() -> double&
auto y() -> double&
void assign(double x, double y)
template<typename T>
void assign(const T& p)
auto x(size_t axis) const -> double
auto operator[](const size_t& i) const -> double
auto operator[](const size_t& i) -> double&
template<typename T>
void assign(const T& p)
auto point() const -> const KPoint&
auto point() -> KPoint&
auto data() -> double*
auto data() const -> const double*
auto operator()(const size_t& i) const -> double
auto operator<(const KPoint& other) const -> bool
void print(std::ostream& s) const
auto distance(const KPoint& p) const -> double
auto distance2(const KPoint& p) const -> double
auto operator==(const KPoint& other) const -> bool
auto operator!=(const KPoint& other) const -> bool
void normalize(const KPoint& offset, const KPoint& scale)
auto begin() const -> const double*
auto end() const -> const double*
auto operator+(const KPoint& other) const -> KPoint
auto operator-(const KPoint& other) const -> KPoint
auto operator*(const double s) const -> KPoint

Function documentation

static size_t atlas::PointXY::dimensions()

static double atlas::PointXY::distance(const KPoint& p1, const KPoint& p2)

static double atlas::PointXY::distance(const KPoint& p1, const KPoint& p2, unsigned int axis)

static double atlas::PointXY::distance2(const KPoint& p1, const KPoint& p2)

static bool atlas::PointXY::equal(const KPoint& p1, const KPoint& p2)

static double atlas::PointXY::norm(const KPoint& p1)

static double atlas::PointXY::dot(const KPoint& p1, const KPoint& p2)

static KPoint atlas::PointXY::add(const KPoint& p1, const KPoint& p2)

static KPoint atlas::PointXY::middle(const KPoint& p1, const KPoint& p2)

static KPoint atlas::PointXY::sub(const KPoint& p1, const KPoint& p2)

static KPoint atlas::PointXY::mul(const KPoint& p, double m)

static KPoint atlas::PointXY::div(const KPoint& p, double m)

static KPoint atlas::PointXY::componentsMin(const KPoint& p1, const KPoint& p2)

static KPoint atlas::PointXY::componentsMax(const KPoint& p1, const KPoint& p2)

static KPoint atlas::PointXY::normalize(const KPoint& p)

static Container::value_type atlas::PointXY::mean(const Container& points)

static KPoint atlas::PointXY::symetrical(const KPoint& w, const KPoint& c)

static void atlas::PointXY::normalizeAll(Container& c, KPoint& offset, KPoint& scale)

atlas::PointXY::operator eckit::Value() const

double atlas::PointXY::x(size_t axis) const

double atlas::PointXY::operator[](const size_t& i) const

double& atlas::PointXY::operator[](const size_t& i)

template<typename T>
void atlas::PointXY::assign(const T& p)

const KPoint& atlas::PointXY::point() const

KPoint& atlas::PointXY::point()

double* atlas::PointXY::data()

const double* atlas::PointXY::data() const

double atlas::PointXY::operator()(const size_t& i) const

bool atlas::PointXY::operator<(const KPoint& other) const

void atlas::PointXY::print(std::ostream& s) const

double atlas::PointXY::distance(const KPoint& p) const

double atlas::PointXY::distance2(const KPoint& p) const

bool atlas::PointXY::operator==(const KPoint& other) const

bool atlas::PointXY::operator!=(const KPoint& other) const

void atlas::PointXY::normalize(const KPoint& offset, const KPoint& scale)

const double* atlas::PointXY::begin() const

const double* atlas::PointXY::end() const

KPoint atlas::PointXY::operator+(const KPoint& other) const

KPoint atlas::PointXY::operator-(const KPoint& other) const

KPoint atlas::PointXY::operator*(const double s) const

Variable documentation

static const size_t atlas::PointXY::DIMS