Geogram Version 1.10.1
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::vec3Hg< T > Class Template Reference

3d vector with homogeneous coordinates More...

#include <geogram/basic/vechg.h>

Public Types

typedef T value_type
 The type of the vector coordinates.
 

Public Member Functions

 vec3Hg (const T &x_in, const T &y_in, const T &z_in, const T &w_in)
 
 vec3Hg (T &&x_in, T &&y_in, T &&z_in, T &&w_in)
 
 vec3Hg (double x_in, double y_in, double z_in, double w_in)
 
 vec3Hg (const vec3Hg &rhs)=default
 
 vec3Hg (vec3Hg &&rhs)=default
 
template<class T2 >
 vec3Hg (const vecng< 3, T2 > &rhs)
 
template<class T2 >
 vec3Hg (const vec3Hg< T2 > &rhs)
 
vec3Hgoperator= (const vec3Hg &rhs)=default
 
vec3Hgoperator= (vec3Hg &&rhs)=default
 
T * data ()
 
const T * data () const
 
T & operator[] (coord_index_t i)
 
const T & operator[] (coord_index_t i) const
 
rationalg< T > cartesian (coord_index_t i) const
 
void optimize ()
 

Public Attributes

x
 
y
 
z
 
w
 

Detailed Description

template<class T>
class GEO::vec3Hg< T >

3d vector with homogeneous coordinates

Definition at line 190 of file vechg.h.

Member Typedef Documentation

◆ value_type

template<class T >
typedef T GEO::vec3Hg< T >::value_type

The type of the vector coordinates.

Definition at line 193 of file vechg.h.

Constructor & Destructor Documentation

◆ vec3Hg() [1/5]

template<class T >
GEO::vec3Hg< T >::vec3Hg ( const T &  x_in,
const T &  y_in,
const T &  z_in,
const T &  w_in 
)
inline

Definition at line 197 of file vechg.h.

◆ vec3Hg() [2/5]

template<class T >
GEO::vec3Hg< T >::vec3Hg ( T &&  x_in,
T &&  y_in,
T &&  z_in,
T &&  w_in 
)
inline

Definition at line 204 of file vechg.h.

◆ vec3Hg() [3/5]

template<class T >
GEO::vec3Hg< T >::vec3Hg ( double  x_in,
double  y_in,
double  z_in,
double  w_in 
)
inline

Definition at line 211 of file vechg.h.

◆ vec3Hg() [4/5]

template<class T >
template<class T2 >
GEO::vec3Hg< T >::vec3Hg ( const vecng< 3, T2 > &  rhs)
inlineexplicit

Definition at line 222 of file vechg.h.

◆ vec3Hg() [5/5]

template<class T >
template<class T2 >
GEO::vec3Hg< T >::vec3Hg ( const vec3Hg< T2 > &  rhs)
inlineexplicit

Definition at line 229 of file vechg.h.

Member Function Documentation

◆ cartesian()

template<class T >
rationalg< T > GEO::vec3Hg< T >::cartesian ( coord_index_t  i) const
inline

Definition at line 257 of file vechg.h.

◆ data() [1/2]

template<class T >
T * GEO::vec3Hg< T >::data ( )
inline

Definition at line 239 of file vechg.h.

◆ data() [2/2]

template<class T >
const T * GEO::vec3Hg< T >::data ( ) const
inline

Definition at line 243 of file vechg.h.

◆ operator[]() [1/2]

template<class T >
T & GEO::vec3Hg< T >::operator[] ( coord_index_t  i)
inline

Definition at line 247 of file vechg.h.

◆ operator[]() [2/2]

template<class T >
const T & GEO::vec3Hg< T >::operator[] ( coord_index_t  i) const
inline

Definition at line 252 of file vechg.h.

◆ optimize()

template<class T >
void GEO::vec3Hg< T >::optimize ( )
inline

Definition at line 262 of file vechg.h.

Member Data Documentation

◆ w

template<class T >
T GEO::vec3Hg< T >::w

Definition at line 272 of file vechg.h.

◆ x

template<class T >
T GEO::vec3Hg< T >::x

Definition at line 269 of file vechg.h.

◆ y

template<class T >
T GEO::vec3Hg< T >::y

Definition at line 270 of file vechg.h.

◆ z

template<class T >
T GEO::vec3Hg< T >::z

Definition at line 271 of file vechg.h.


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