RecFusion SDK
RecFusion::Vec3 Class Reference

Three element double vector. More...

Public Member Functions

 Vec3 (double x, double y, double z)
 Construct vector. More...
 
double & operator[] (int idx)
 Get reference to vector element at given index. More...
 
double operator[] (int idx) const
 Get vector element at given index. More...
 
double * data ()
 Get pointer to vector data.
 
const double * data () const
 Get const pointer to vector data.
 

Detailed Description

Three element double vector.

Constructor & Destructor Documentation

◆ Vec3()

RecFusion::Vec3::Vec3 ( double  x,
double  y,
double  z 
)

Construct vector.

Parameters
xFirst entry
ySecond entry
zThird entry

Member Function Documentation

◆ operator[]() [1/2]

double& RecFusion::Vec3::operator[] ( int  idx)

Get reference to vector element at given index.

Parameters
idxElement index
Returns
Vector element at index

◆ operator[]() [2/2]

double RecFusion::Vec3::operator[] ( int  idx) const

Get vector element at given index.

Parameters
idxElement index
Returns
Vector element at index

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