Zivid C++ API 2.9.0+4dbba385-1
Defining the Future of 3D Machine Vision
Public Member Functions | Public Attributes | List of all members
Zivid::PointXYZW Struct Reference

Point with four coordinates as float More...

#include <Zivid/Point.h>

Public Member Functions

 PointXYZW ()=default
 Constructor More...
 
 PointXYZW (float xCoord, float yCoord, float zCoord, float wCoord)
 Constructor More...
 
bool isNaN () const
 Check if the point is Not-a-Number (invalid) More...
 
ZIVID_CORE_EXPORT std::string toString () const
 Get string representation More...
 
ZIVID_CORE_EXPORT bool operator== (const PointXYZW &rhs) const
 Check for equality More...
 
ZIVID_CORE_EXPORT bool operator!= (const PointXYZW &rhs) const
 Check for inequality More...
 

Public Attributes

float x
 The x element of the point More...
 
float y
 The y element of the point More...
 
float z
 The z element of the point More...
 
float w
 The w element of the point More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PointXYZW() [1/2]

Zivid::PointXYZW::PointXYZW ( )
default

Constructor

◆ PointXYZW() [2/2]

Zivid::PointXYZW::PointXYZW ( float  xCoord,
float  yCoord,
float  zCoord,
float  wCoord 
)
inline

Constructor

Member Function Documentation

◆ isNaN()

bool Zivid::PointXYZW::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::PointXYZW::operator!= ( const PointXYZW rhs) const

Check for inequality

◆ operator==()

ZIVID_CORE_EXPORT bool Zivid::PointXYZW::operator== ( const PointXYZW rhs) const

Check for equality

◆ toString()

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

Get string representation

Member Data Documentation

◆ w

float Zivid::PointXYZW::w

The w element of the point

◆ x

float Zivid::PointXYZW::x

The x element of the point

◆ y

float Zivid::PointXYZW::y

The y element of the point

◆ z

float Zivid::PointXYZW::z

The z element of the point


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