MeshLib Documentation
Loading...
Searching...
No Matches
2d <-> 3d conversion

Functions

template<typename T >
Vector3< T > MR::to3dim (const Vector2< T > &v)
 
template<typename T >
Vector2< T > MR::to2dim (const Vector3< T > &v)
 
template<typename T >
Matrix3< T > MR::to3dim (const Matrix2< T > &m)
 
template<typename T >
Matrix2< T > MR::to2dim (const Matrix3< T > &m)
 
template<typename T >
AffineXf3< T > MR::to3dim (const AffineXf2< T > &xf)
 
template<typename T >
AffineXf2< T > MR::to2dim (const AffineXf3< T > &xf)
 

Detailed Description

Conversion functions from lower-dimensional data to higher-dimensional put 0 in additional dimensions of vectors or identity elements in matrix Conversion functions from higher-dimensional data to lower-dimensional just omit additional dimensions

Function Documentation

◆ to2dim() [1/3]

template<typename T >
AffineXf2< T > MR::to2dim ( const AffineXf3< T > & xf)
inlinenodiscard

◆ to2dim() [2/3]

template<typename T >
Matrix2< T > MR::to2dim ( const Matrix3< T > & m)
inlinenodiscard

◆ to2dim() [3/3]

template<typename T >
Vector2< T > MR::to2dim ( const Vector3< T > & v)
inlinenodiscard

◆ to3dim() [1/3]

template<typename T >
AffineXf3< T > MR::to3dim ( const AffineXf2< T > & xf)
inlinenodiscard

◆ to3dim() [2/3]

template<typename T >
Matrix3< T > MR::to3dim ( const Matrix2< T > & m)
inlinenodiscard

◆ to3dim() [3/3]

template<typename T >
Vector3< T > MR::to3dim ( const Vector2< T > & v)
inlinenodiscard