Zivid C++ API 2.14.0+e4a0c4a9-1
|
Vector with three coordinates as float. More...
#include <Zivid/Vector.h>
Public Types | |
using | ValueType = float |
The type of the coordinate values. | |
Public Member Functions | |
VectorXYZ ()=default | |
Constructor. | |
VectorXYZ (float xCoord, float yCoord, float zCoord) | |
Constructor. | |
bool | isNaN () const |
Check if the vector is Not-a-Number (invalid) | |
ZIVID_UTILS_EXPORT std::string | toString () const |
Get string representation. | |
ZIVID_UTILS_EXPORT bool | operator== (const VectorXYZ &rhs) const |
Check for equality. | |
ZIVID_UTILS_EXPORT bool | operator!= (const VectorXYZ &rhs) const |
Check for inequality. | |
Public Attributes | |
ValueType | x |
The x element of the vector. | |
ValueType | y |
The y element of the vector. | |
ValueType | z |
The z element of the vector. | |
Vector with three coordinates as float.
using Zivid::VectorXYZ::ValueType = float |
The type of the coordinate values.
|
default |
Constructor.
|
inline |
Constructor.
|
inline |
Check if the vector is Not-a-Number (invalid)
A vector is defined as NaN if the z-coordinate is NaN
ZIVID_UTILS_EXPORT bool Zivid::VectorXYZ::operator!= | ( | const VectorXYZ & | rhs | ) | const |
Check for inequality.
ZIVID_UTILS_EXPORT bool Zivid::VectorXYZ::operator== | ( | const VectorXYZ & | rhs | ) | const |
Check for equality.
ZIVID_UTILS_EXPORT std::string Zivid::VectorXYZ::toString | ( | ) | const |
Get string representation.
ValueType Zivid::VectorXYZ::x |
The x element of the vector.
ValueType Zivid::VectorXYZ::y |
The y element of the vector.
ValueType Zivid::VectorXYZ::z |
The z element of the vector.