MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
CSOMath.h File Reference

Go to the source code of this file.

Namespaces

namespace  ml
 Main documentation file for ML users and developers.
 
namespace  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 really fast.
 

Functions

MLCSO_EXPORT double ml::CSOMath::computeArea (const std::vector< Vector3 > &points, const Vector3 &normal)
 Computes the area of the polygon that is given as a list of points.
 
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.
 
MLCSO_EXPORT int ml::CSOMath::floorToInt (const double x)
 Returns the floored double value as an integer.
 
MLCSO_EXPORT int ml::CSOMath::ceilToInt (const double x)
 Returns the ceiled double value as an integer.
 
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.
 

Variables

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