Zivid C++ API 2.13.1+18e79e79-1
Zivid::PointXYZ Struct Reference

Point with three coordinates as float. More...

#include <Zivid/Point.h>

Public Types

using ValueType = float
 The type of the coordinate values.
 

Public Member Functions

 PointXYZ ()=default
 Constructor.
 
constexpr PointXYZ (float xCoord, float yCoord, float zCoord)
 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 PointXYZ &rhs) const
 Check for equality.
 
ZIVID_CORE_EXPORT bool operator!= (const PointXYZ &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.
 

Detailed Description

Point with three coordinates as float.

Member Typedef Documentation

◆ ValueType

The type of the coordinate values.

Constructor & Destructor Documentation

◆ PointXYZ() [1/2]

Zivid::PointXYZ::PointXYZ ( )
default

Constructor.

◆ PointXYZ() [2/2]

Zivid::PointXYZ::PointXYZ ( float xCoord,
float yCoord,
float zCoord )
inlineconstexpr

Constructor.

Member Function Documentation

◆ isNaN()

bool Zivid::PointXYZ::isNaN ( ) const
inline

Check if the point is Not-a-Number (invalid)

A point is defined as NaN if the z-coordinate is NaN

◆ operator!=()

ZIVID_CORE_EXPORT bool Zivid::PointXYZ::operator!= ( const PointXYZ & rhs) const

Check for inequality.

◆ operator==()

ZIVID_CORE_EXPORT bool Zivid::PointXYZ::operator== ( const PointXYZ & rhs) const

Check for equality.

◆ toString()

ZIVID_CORE_EXPORT std::string Zivid::PointXYZ::toString ( ) const

Get string representation.

Member Data Documentation

◆ x

ValueType Zivid::PointXYZ::x

The x element of the point.

◆ y

ValueType Zivid::PointXYZ::y

The y element of the point.

◆ z

ValueType Zivid::PointXYZ::z

The z element of the point.


The documentation for this struct was generated from the following file: