Zivid C++ API 2.14.0+e4a0c4a9-1
|
Point with four coordinates as float. More...
#include <Zivid/Point.h>
Public Types | |
using | ValueType = float |
The type of the coordinate values. | |
Public Member Functions | |
PointXYZW ()=default | |
Constructor. | |
PointXYZW (float xCoord, float yCoord, float zCoord, float wCoord) | |
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 PointXYZW &rhs) const |
Check for equality. | |
ZIVID_UTILS_EXPORT bool | operator!= (const PointXYZW &rhs) const |
Check for inequality. | |
Public Attributes | |
ValueType | x |
The x element of the point. | |
ValueType | y |
The y element of the point. | |
ValueType | z |
The z element of the point. | |
ValueType | w |
The w element of the point. | |
Point with four coordinates as float.
Storing the point coordinates in 4D can be useful in some scenarios. For example if the points are to be passed to a different library which expects 4 floats for point coordinates. It is also useful when applying 4x4 transformation matrices.
using Zivid::PointXYZW::ValueType = float |
The type of the coordinate values.
|
default |
Constructor.
|
inline |
Constructor.
|
inline |
Check if the point is Not-a-Number (invalid)
A point is defined as NaN if the z-coordinate is NaN
ZIVID_UTILS_EXPORT bool Zivid::PointXYZW::operator!= | ( | const PointXYZW & | rhs | ) | const |
Check for inequality.
ZIVID_UTILS_EXPORT bool Zivid::PointXYZW::operator== | ( | const PointXYZW & | rhs | ) | const |
Check for equality.
ZIVID_UTILS_EXPORT std::string Zivid::PointXYZW::toString | ( | ) | const |
Get string representation.
ValueType Zivid::PointXYZW::w |
The w element of the point.
ValueType Zivid::PointXYZW::x |
The x element of the point.
ValueType Zivid::PointXYZW::y |
The y element of the point.
ValueType Zivid::PointXYZW::z |
The z element of the point.