Zivid C++ API 2.10.1+50b274e8-7
Defining the Future of 3D Machine Vision
Public Member Functions | Public Attributes | List of all members
Zivid::PointXY Struct Reference

Point with two coordinates as float More...

#include <Zivid/Point.h>

Public Member Functions

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

Detailed Description

Point with two coordinates as float

Constructor & Destructor Documentation

◆ PointXY() [1/2]

Zivid::PointXY::PointXY ( )
default

Constructor

◆ PointXY() [2/2]

constexpr Zivid::PointXY::PointXY ( float  xCoord,
float  yCoord 
)
inlineconstexpr

Constructor

Member Function Documentation

◆ isNaN()

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

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

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

◆ operator!=()

ZIVID_CORE_EXPORT bool Zivid::PointXY::operator!= ( const PointXY rhs) const

Check for inequality

◆ operator==()

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

Check for equality

◆ toString()

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

Get string representation

Member Data Documentation

◆ x

float Zivid::PointXY::x

The x element of the point

◆ y

float Zivid::PointXY::y

The y element of the point


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