#define ZIVID_UTILS_EXPORT
Definition UtilsExport.h:56
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:85
std::ostream & operator<<(std::ostream &stream, const Array1D< T > &array)
Serialize array information to a stream.
Definition Array1D.h:183
Vector with three coordinates as float.
Definition Vector.h:60
ZIVID_UTILS_EXPORT bool operator==(const VectorXYZ &rhs) const
Check for equality.
ValueType y
The y element of the vector.
Definition Vector.h:94
bool isNaN() const
Check if the vector is Not-a-Number (invalid)
Definition Vector.h:76
ZIVID_UTILS_EXPORT bool operator!=(const VectorXYZ &rhs) const
Check for inequality.
VectorXYZ(float xCoord, float yCoord, float zCoord)
Constructor.
Definition Vector.h:68
VectorXYZ()=default
Constructor.
ZIVID_UTILS_EXPORT std::string toString() const
Get string representation.
ValueType z
The z element of the vector.
Definition Vector.h:97
ValueType x
The x element of the vector.
Definition Vector.h:91
float ValueType
The type of the coordinate values.
Definition Vector.h:62
Vector with two coordinates as float.
Definition Vector.h:109
constexpr VectorXY(float xCoord, float yCoord)
Constructor.
Definition Vector.h:117
ZIVID_UTILS_EXPORT bool operator==(const VectorXY &rhs) const
Check for equality.
ZIVID_UTILS_EXPORT float angleInRadians() const
Get the direction of this vector as an angle in radians, in the range [0, 2*pi)
float ValueType
The type of the coordinate values.
Definition Vector.h:111
ZIVID_UTILS_EXPORT float angleInDegrees() const
Get the direction of this vector as an angle in degrees, in the range [0, 360)
ValueType y
The y element of the vector.
Definition Vector.h:153
ZIVID_UTILS_EXPORT bool operator!=(const VectorXY &rhs) const
Check for inequality.
ValueType x
The x element of the vector.
Definition Vector.h:150
VectorXY()=default
Constructor.
ZIVID_UTILS_EXPORT std::string toString() const
Get string representation.