Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::XyzType< T > Struct Template Reference

Template type containing three values. More...

Public Member Functions

 XyzType (T aX=0, T aY=0, T aZ=0)
 Constructor initializing x and y to 0 if no values are passed in.
bool operator== (const XyzType &item) const
 Comparison operator equal.
bool operator!= (const XyzType &item) const
 Comparison operator not equal.

Public Attributes

x
 Horizontal zero-based screen position, in pixels, increasing from left to right.
y
 Vertical zero-based screen position, in pixels, increasing from top to bottom.
z
 Depth zero-based screen position, in pixels, increasing from front to back.

Detailed Description

template<typename T>
struct gem::XyzType< T >

Template type containing three values.

Constructor & Destructor Documentation

◆ XyzType()

template<typename T>
gem::XyzType< T >::XyzType ( T aX = 0,
T aY = 0,
T aZ = 0 )
inline

Constructor initializing x and y to 0 if no values are passed in.

Parameters
aXHorizontal zero-based screen position, in pixels, increasing from left to right.
aYVertical zero-based screen position, in pixels, increasing from top to bottom.
aZDepth zero-based screen position, in pixels, increasing from front to back.

Member Function Documentation

◆ operator!=()

template<typename T>
bool gem::XyzType< T >::operator!= ( const XyzType< T > & item) const
inline

Comparison operator not equal.

Parameters
itemXyzType to compare to.
Returns
True if any of the 3 values are not equal, false otherwise.

◆ operator==()

template<typename T>
bool gem::XyzType< T >::operator== ( const XyzType< T > & item) const
inline

Comparison operator equal.

Parameters
itemXyzType to compare to.
Returns
True if all 3 values are equal, false otherwise.