Zivid C++ API 2.12.0+6afd4961-1
|
Point with two coordinates as float. More...
#include <Zivid/Point.h>
Public Types | |
using | ValueType = float |
The type of the coordinate values. | |
Public Member Functions | |
PointXY ()=default | |
Constructor. | |
constexpr | PointXY (float xCoord, float yCoord) |
Constructor. | |
bool | isNaN () const |
Check if the point is Not-a-Number (invalid) | |
ZIVID_CORE_EXPORT std::string | toString () const |
Get string representation. | |
ZIVID_CORE_EXPORT bool | operator== (const PointXY &rhs) const |
Check for equality. | |
ZIVID_CORE_EXPORT bool | operator!= (const PointXY &rhs) const |
Check for inequality. | |
Public Attributes | |
ValueType | x |
The x element of the point. | |
ValueType | y |
The y element of the point. | |
Point with two coordinates as float.
using Zivid::PointXY::ValueType = float |
The type of the coordinate values.
|
default |
Constructor.
|
inlineconstexpr |
Constructor.
|
inline |
Check if the point is Not-a-Number (invalid)
A point is defined as NaN if the y-coordinate is NaN
ZIVID_CORE_EXPORT bool Zivid::PointXY::operator!= | ( | const PointXY & | rhs | ) | const |
Check for inequality.
ZIVID_CORE_EXPORT bool Zivid::PointXY::operator== | ( | const PointXY & | rhs | ) | const |
Check for equality.
ZIVID_CORE_EXPORT std::string Zivid::PointXY::toString | ( | ) | const |
Get string representation.
ValueType Zivid::PointXY::x |
The x element of the point.
ValueType Zivid::PointXY::y |
The y element of the point.