MeVisLab Toolbox Reference
CSOMath.h File Reference

Go to the source code of this file.

Namespaces

 ml
 Main documentation file for ML users and developers.
 
 ml::CSOMath
 The CSOMath namespace offers some common methods for various problems, e.g., computing the area, mapping from voxel to world or computing numerical problems real fast.
 

Functions

MLCSO_EXPORT double ml::CSOMath::computeArea (const std::vector< Vector3 > &points, const Vector3 &normal)
 Computes the area of the polygon, given as a list of points. More...
 
MLCSO_EXPORT void ml::CSOMath::computeAreaAndCenterOfGravity (const std::vector< Vector3 > &points, const Vector3 &normal, const Vector3 &centerPoint, double &area, Vector3 &centerOfGravity)
 
MLCSO_EXPORT size_t ml::CSOMath::getHashKeyForMatrix4 (const ml::Matrix4 &matrix)
 Returns a hash key for a given matrix. More...
 
MLCSO_EXPORT int ml::CSOMath::floorToInt (const double x)
 Returns the floored double value as an integer. More...
 
MLCSO_EXPORT int ml::CSOMath::ceilToInt (const double x)
 Returns the ceiled double value as an integer. More...
 
MLCSO_EXPORT double ml::CSOMath::computeDirectionDotProduct (const Vector3 &predPos, const Vector3 &middlePos, const Vector3 &succPos)
 Computes and returns the dot product of the direction vectors of pred-middle and middle-succ. More...
 

Variables

const double ml::CSOMath::smallNumber = 10e-10