MeVisLabToolboxReference
MeVisLab/Standard/Sources/ML/MLCSO/CSOTools/CSOMath.h File Reference

The CSOMath class offers some common methods for various problems, e.g., computing the area, mapping from voxel to world or computing numerical problems real fast. More...

Go to the source code of this file.

Namespaces

namespace  ml
 

Define the namespace name like in the ML. Default is ml.


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 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.
MLCSO_EXPORT void ml::CSOMath::computeAreaAndCenterOfGravity (const std::vector< Vector3 > &points, const Vector3 &normal, const Vector3 &centerPoint, double &area, Vector3 &centerOfGravity)
MLCSO_EXPORT Vector3 ml::CSOMath::mapWorldToVoxel (const Vector3 &worldPos, const CSO *cso)
 Computes the voxel position of a given world position with the matrix of the given CSO.
MLCSO_EXPORT void ml::CSOMath::mapWorldToVoxel (const Vector3 &worldPos, Vector3 &voxelPos, const CSO *cso)
 Computes the voxel position of a given world position with the matrix of the given CSO.
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

Detailed Description

The CSOMath class offers some common methods for various problems, e.g., computing the area, mapping from voxel to world or computing numerical problems real fast.

Author:
Olaf Konrad, Frank Heckel
Date:
06/2006

Definition in file CSOMath.h.