ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::utility::MiniVec< T, N > Struct Template Reference

#include <MiniVec.h>

Public Types

typedef T Scalar_t
 

Public Member Functions

 MiniVec ()
 
template<class... TInit>
 MiniVec (TInit... as)
 
 MiniVec (const T *const ptr)
 
const T operator[] (size_t i) const
 
T & operator[] (size_t i)
 
template<class T2 >
MiniVec< T2, N > cast () const
 
dot (const MiniVec< T, N > &a) const
 
MiniVec< T, N > abs () const
 
bool all () const
 
bool any () const
 

Public Attributes

arr [N]
 

Detailed Description

template<class T, int N>
struct cloudViewer::utility::MiniVec< T, N >

Small vector class with some basic arithmetic operations that can be used within cuda kernels

Definition at line 24 of file MiniVec.h.

Member Typedef Documentation

◆ Scalar_t

template<class T , int N>
typedef T cloudViewer::utility::MiniVec< T, N >::Scalar_t

Definition at line 25 of file MiniVec.h.

Constructor & Destructor Documentation

◆ MiniVec() [1/3]

template<class T , int N>
cloudViewer::utility::MiniVec< T, N >::MiniVec ( )
inline

Definition at line 27 of file MiniVec.h.

◆ MiniVec() [2/3]

template<class T , int N>
template<class... TInit>
cloudViewer::utility::MiniVec< T, N >::MiniVec ( TInit...  as)
inlineexplicit

Definition at line 30 of file MiniVec.h.

◆ MiniVec() [3/3]

template<class T , int N>
cloudViewer::utility::MiniVec< T, N >::MiniVec ( const T *const  ptr)
inlineexplicit

Definition at line 32 of file MiniVec.h.

Member Function Documentation

◆ abs()

template<class T , int N>
MiniVec<T, N> cloudViewer::utility::MiniVec< T, N >::abs ( ) const
inline

Definition at line 53 of file MiniVec.h.

References abs().

◆ all()

template<class T , int N>
bool cloudViewer::utility::MiniVec< T, N >::all ( ) const
inline

Definition at line 59 of file MiniVec.h.

References result.

◆ any()

template<class T , int N>
bool cloudViewer::utility::MiniVec< T, N >::any ( ) const
inline

Definition at line 65 of file MiniVec.h.

◆ cast()

template<class T , int N>
template<class T2 >
MiniVec<T2, N> cloudViewer::utility::MiniVec< T, N >::cast ( ) const
inline

Definition at line 41 of file MiniVec.h.

◆ dot()

template<class T , int N>
T cloudViewer::utility::MiniVec< T, N >::dot ( const MiniVec< T, N > &  a) const
inline

Definition at line 47 of file MiniVec.h.

References result.

◆ operator[]() [1/2]

template<class T , int N>
T& cloudViewer::utility::MiniVec< T, N >::operator[] ( size_t  i)
inline

Definition at line 38 of file MiniVec.h.

References cloudViewer::utility::MiniVec< T, N >::arr.

◆ operator[]() [2/2]

template<class T , int N>
const T cloudViewer::utility::MiniVec< T, N >::operator[] ( size_t  i) const
inline

Definition at line 36 of file MiniVec.h.

References cloudViewer::utility::MiniVec< T, N >::arr.

Member Data Documentation

◆ arr

template<class T , int N>
T cloudViewer::utility::MiniVec< T, N >::arr[N]

Definition at line 71 of file MiniVec.h.

Referenced by cloudViewer::utility::MiniVec< T, N >::operator[]().


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