TTK
Loading...
Searching...
No Matches
Functions
ttk::mth Namespace Reference

Functions

constexpr unsigned long long int getHash (const unsigned long long int a, const unsigned long long int b)
 Get a hash value from two keys.
 
void getCenter (const std::array< float, 3 > pos0, const std::array< float, 3 > pos1, std::array< float, 3 > &incenter)
 Get the center of two points.
 
void getCenter (const std::array< float, 3 > pos0, const std::array< float, 3 > pos1, const std::array< float, 3 > pos2, std::array< float, 3 > &incenter)
 Get the center of three points.
 
void getCenter (const std::array< float, 3 > pos0, const std::array< float, 3 > pos1, const std::array< float, 3 > pos2, const std::array< float, 3 > pos3, std::array< float, 3 > &incenter)
 Get the center of four points.
 
void interpolatePoints (const std::array< float, 3 > pos0, const std::array< float, 3 > pos1, const float lambda, std::array< float, 3 > &result)
 Interpolate between two points (lambda = 0 -> pos1 / 1 -> pos0)
 

Function Documentation

◆ getCenter() [1/3]

void ttk::mth::getCenter ( const std::array< float, 3 >  pos0,
const std::array< float, 3 >  pos1,
const std::array< float, 3 >  pos2,
const std::array< float, 3 >  pos3,
std::array< float, 3 > &  incenter 
)
inline

Get the center of four points.

Parameters
[in]pos0Position 0
[in]pos1Position 1
[in]pos2Position 2
[in]pos3Position 3
[out]incenterResulting position
Returns
int 0 on success

Definition at line 100 of file MarchingTetrahedra.h.

◆ getCenter() [2/3]

void ttk::mth::getCenter ( const std::array< float, 3 >  pos0,
const std::array< float, 3 >  pos1,
const std::array< float, 3 >  pos2,
std::array< float, 3 > &  incenter 
)
inline

Get the center of three points.

Parameters
[in]pos0Position 0
[in]pos1Position 1
[in]pos2Position 2
[out]incenterResulting position
Returns
int 0 on success

Definition at line 81 of file MarchingTetrahedra.h.

◆ getCenter() [3/3]

void ttk::mth::getCenter ( const std::array< float, 3 >  pos0,
const std::array< float, 3 >  pos1,
std::array< float, 3 > &  incenter 
)
inline

Get the center of two points.

Parameters
[in]pos0Position 0
[in]pos1Position 1
[out]incenterResulting position
Returns
int 0 on success

Definition at line 64 of file MarchingTetrahedra.h.

◆ getHash()

constexpr unsigned long long int ttk::mth::getHash ( const unsigned long long int  a,
const unsigned long long int  b 
)
constexpr

Get a hash value from two keys.

Parameters
aFirst Hash key
bSecond hash key
Returns
Hash value

Definition at line 50 of file MarchingTetrahedra.h.

◆ interpolatePoints()

void ttk::mth::interpolatePoints ( const std::array< float, 3 >  pos0,
const std::array< float, 3 >  pos1,
const float  lambda,
std::array< float, 3 > &  result 
)
inline

Interpolate between two points (lambda = 0 -> pos1 / 1 -> pos0)

Parameters
[in]pos0Position 0
[in]pos1Position 1
[in]lambdaInterpolation parameter
[out]resultResulting position
Returns
int 0 on success

Definition at line 119 of file MarchingTetrahedra.h.