61#if defined(WIN32) && !defined(_WIN64)
68 return static_cast<int>(
floor(x));
76#if defined(WIN32) && !defined(_WIN64)
83 return static_cast<int>(
ceil(x));
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLCSO_EXPORT size_t getHashKeyForMatrix4(const ml::Matrix4 &matrix)
Returns a hash key for a given matrix.
MLCSO_EXPORT int floorToInt(const double x)
Returns the floored double value as an integer.
MLCSO_EXPORT double computeArea(const std::vector< Vector3 > &points, const Vector3 &normal)
Computes the area of the polygon, given as a list of points.
MLCSO_EXPORT int ceilToInt(const double x)
Returns the ceiled double value as an integer.
MLCSO_EXPORT void computeAreaAndCenterOfGravity(const std::vector< Vector3 > &points, const Vector3 &normal, const Vector3 ¢erPoint, double &area, Vector3 ¢erOfGravity)
MLCSO_EXPORT double 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.