template<typename T>
dip::Vertex struct

Encodes a location in a 2D image.

Constructors, destructors, assignment and conversion operators

Vertex() constexpr
Default constructor.
Vertex(T x, T y) constexpr
Constructor.

Functions

template<typename V>
void Vertex(dip::Vertex v)
Constructor.
auto Round() const -> dip::Vertex
Round coordinates to nearest integer.
auto Permute() const -> dip::Vertex
Permute dimensions, swapping x and y values.

Operators

template<typename V>
auto operator+=(dip::Vertex v) -> dip::Vertex&
Add a vertex.
template<typename V>
auto operator-=(dip::Vertex v) -> dip::Vertex&
Subtract a vertex.
auto operator+=(T t) -> dip::Vertex&
Add a constant to both coordinate components.
auto operator-=(T t) -> dip::Vertex&
Subtract a constant from both coordinate components.
auto operator*=(dip::dfloat s) -> dip::Vertex&
Scale by a constant, isotropically.
template<typename V>
auto operator*=(dip::Vertex v) -> dip::Vertex&
Scale by a constant, anisotropically.
auto operator/=(dip::dfloat s) -> dip::Vertex&
Scale by the inverse of a constant, isotropically.
template<typename V>
auto operator/=(dip::Vertex v) -> dip::Vertex&
Scale by the inverse of a constant, anisotropically.

Variables

T x
The x-coordinate
T y
The y-coordinate