![]() |
Zivid C++ API 2.15.0+5fcc365b-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_UTILS_EXPORT std::string | toString () const |
| Get string representation. | |
| ZIVID_UTILS_EXPORT bool | operator== (const PointXY &rhs) const |
| Check for equality. | |
| ZIVID_UTILS_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_UTILS_EXPORT bool Zivid::PointXY::operator!= | ( | const PointXY & | rhs | ) | const |
Check for inequality.
| ZIVID_UTILS_EXPORT bool Zivid::PointXY::operator== | ( | const PointXY & | rhs | ) | const |
Check for equality.
| ZIVID_UTILS_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.