61#if defined(WIN32) && !defined(_WIN64)
62 const double floored_x =
floor(x);
64 __asm fld qword ptr floored_x;
65 __asm fistp dword ptr n;
68 return static_cast<int>(
floor(x));
76#if defined(WIN32) && !defined(_WIN64)
77 const double ceiled_x =
ceil(x);
79 __asm fld qword ptr ceiled_x;
80 __asm fistp dword ptr n;
83 return static_cast<int>(
ceil(x));
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
MLCSO_EXPORT size_t getHashKeyForMatrix4(const ml::Matrix4 &matrix)
Returns a hash key for a given matrix.
MLCSO_EXPORT int floorToInt(const double x)
MLCSO_EXPORT double 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 int ceilToInt(const double x)
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)
Tmat4< MLdouble > Matrix4
The standard 4x4 matrix of type double.
Tvec3< MLdouble > Vector3
A vector with three components of type double.