Zivid C++ API  1.8.1+6967bc1b-1
Defining the Future of 3D Machine Vision
Public Types | Public Member Functions | Public Attributes | List of all members
Zivid::Vector2< T > Struct Template Reference

Vector of size 2 More...

#include <Zivid/Vector.h>

Public Types

using ValueType = T
 The type stored in the vector More...
 

Public Member Functions

 Vector2 ()=default
 Constructor More...
 
 Vector2 (T xCoord, T yCoord)
 Constructor More...
 
std::string toString () const
 Get string representation of the Vector2 More...
 

Public Attributes

x {}
 The x element of the vector More...
 
y {}
 The y element of the vector More...
 

Detailed Description

template<typename T>
struct Zivid::Vector2< T >

Vector of size 2

Member Typedef Documentation

◆ ValueType

template<typename T >
using Zivid::Vector2< T >::ValueType = T

The type stored in the vector

Constructor & Destructor Documentation

◆ Vector2() [1/2]

template<typename T >
Zivid::Vector2< T >::Vector2 ( )
default

Constructor

◆ Vector2() [2/2]

template<typename T >
Zivid::Vector2< T >::Vector2 ( xCoord,
yCoord 
)
inline

Constructor

Member Function Documentation

◆ toString()

template<typename T >
std::string Zivid::Vector2< T >::toString ( ) const
inline

Get string representation of the Vector2

Returns
Vector2 as string

Member Data Documentation

◆ x

template<typename T >
T Zivid::Vector2< T >::x {}

The x element of the vector

◆ y

template<typename T >
T Zivid::Vector2< T >::y {}

The y element of the vector


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