#include <fbxsdk/fbxsdk_def.h>#include <fbxsdk/core/math/fbxvector2.h>#include <fbxsdk/core/math/fbxvector4.h>#include <fbxsdk/core/math/fbxmatrix.h>#include <fbxsdk/core/math/fbxaffinematrix.h>#include <fbxsdk/fbxsdk_nsbegin.h>#include <fbxsdk/fbxsdk_nsend.h>Definition in file fbxmath.h.
Classes |
|
| class | FbxEuler |
Defines |
|
| #define | FBXSDK_PI 3.1415926535897932384626433832795028841971693993751 |
| #define | FBXSDK_PI_DIV_2 1.5707963267948966192313216916397514420985846996875 |
| #define | FBXSDK_PI_DIV_180 0.017453292519943295769236907684886127134428718885417 |
| #define | FBXSDK_180_DIV_PI 57.295779513082320876798154814105170332405472466565 |
| #define | FBXSDK_1_DIV_LN2 1.4426950408889634073599246810018921374266459541530 |
| #define | FBXSDK_DEG_TO_RAD FBXSDK_PI_DIV_180 |
| Degree to Radian. |
|
| #define | FBXSDK_RAD_TO_DEG FBXSDK_180_DIV_PI |
| Radian to Degree. |
|
| #define | FBXSDK_IN_TO_CM 2.54 |
| Inch to Centimeter. |
|
| #define | FBXSDK_CM_TO_IN 0.393700787 |
| Centimeter to Inch. |
|
| #define | FBXSDK_IN_TO_MM 25.4 |
| Inch to Millimeter. |
|
| #define | FBXSDK_MM_TO_IN 0.0393700787 |
| Millimeter to Inch. |
|
| #define | FBXSDK_FT_TO_M 0.3048 |
| Feet to Meter. |
|
| #define | FBXSDK_M_TO_FT 3.2808399 |
| Meter to Feet. |
|
| #define | FBXSDK_YD_TO_FT 3 |
| Yard to Feet. |
|
| #define | FBXSDK_FT_TO_YD 0.333333333 |
| Feet to Yard. |
|
| #define | FBXSDK_KM_TO_MILE 0.621371192 |
| Kilometer to Mile. |
|
| #define | FBXSDK_MILE_TO_KM 1.609344 |
| Mile to Kilometer. |
|
| #define | FBXSDK_YD_TO_M 0.9144 |
| Yard to Meter. |
|
| #define | FBXSDK_M_TO_YD 1.0936133 |
| Meter to Yard. |
|
| #define | EulerOrder(EAxis, EParity, ERepeat) (((EAxis) << 2) | (EParity) | (ERepeat)) |
Enumerations |
|
| enum | EFbxRotationOrder
{ eEulerXYZ, eEulerXZY, eEulerYZX, eEulerYXZ, eEulerZXY, eEulerZYX, eSphericXYZ } |
| Rotation order flags. More... |
|
| enum | EFbxQuatInterpMode
{ eQuatInterpOff, eQuatInterpClassic, eQuatInterpSlerp, eQuatInterpCubic, eQuatInterpTangentDependent, eQuatInterpCount } |
| Quaternion interpolation modes. More... |
|
Functions |
|
| float | FbxFloor (const float x) |
| double | FbxFloor (const double x) |
| float | FbxCeil (const float x) |
| double | FbxCeil (const double x) |
| template<class T > | |
| T | FbxSign (const T x) |
| template<class T > | |
| T | FbxRound (const T x) |
| FbxUChar | FbxAbs (const FbxUChar x) |
| FbxUShort | FbxAbs (const FbxUShort x) |
| FbxUInt | FbxAbs (const FbxUInt x) |
| FbxULong | FbxAbs (const FbxULong x) |
| FbxULongLong | FbxAbs (const FbxULongLong x) |
| FbxFloat | FbxAbs (const FbxFloat x) |
| FbxDouble | FbxAbs (const FbxDouble x) |
| template<class T > | |
| T | FbxAbs (const T x) |
| template<class T > | |
| T | FbxAbs (const T x, const T y) |
| template<class T > | |
| T | FbxClamp (const T value, const T min, const T max) |
| template<class T > | |
| bool | FbxEqual (const T x, const T y, const T e=FBXSDK_TOLERANCE) |
| bool | FbxEqual (const FbxDouble2 &x, const FbxDouble2 &y, const double e=FBXSDK_TOLERANCE) |
| bool | FbxEqual (const FbxDouble3 &x, const FbxDouble3 &y, const double e=FBXSDK_TOLERANCE) |
| bool | FbxEqual (const FbxDouble4 &x, const FbxDouble4 &y, const double e=FBXSDK_TOLERANCE) |
| bool | FbxEqual (const FbxVector2 &x, const FbxVector2 &y, const double e=FBXSDK_TOLERANCE) |
| bool | FbxEqual (const FbxVector4 &x, const FbxVector4 &y, const double e=FBXSDK_TOLERANCE) |
| bool | FbxEqual (const FbxMatrix &x, const FbxMatrix &y, const double e=FBXSDK_TOLERANCE) |
| bool | FbxEqual (const FbxAMatrix &x, const FbxAMatrix &y, const double e=FBXSDK_TOLERANCE) |
| template<class T > | |
| T | FbxReciprocal (const T x) |
| double | FbxSqrt (const double x) |
| float | FbxSqrt (const float x) |
| template<class T > | |
| T | FbxSqrt (const T x) |
| float | FbxExp (const float x) |
| double | FbxExp (const double x) |
| template<class T > | |
| T | FbxPow (const T x, const T y) |
| float | FbxLog (const float x) |
| double | FbxLog (const double x) |
| template<class T > | |
| T | FbxLog2 (const T x) |
| float | FbxSin (const float x) |
| double | FbxSin (const double x) |
| float | FbxCos (const float x) |
| double | FbxCos (const double x) |
| float | FbxTan (const float x) |
| double | FbxTan (const double x) |
| template<class T > | |
| T | FbxCos (const T x) |
| template<class T > | |
| T | FbxSinCos (const T x, T *y) |
| template<class T > | |
| T | FbxSinCosd (const T x, T *y) |
| double | FbxASin (const double x) |
| template<class T > | |
| T | FbxASind (const T x) |
| template<class T > | |
| T | FbxACosd (const T x) |
| float | FbxATan (const float x) |
| double | FbxATan (const double x) |
| template<class T > | |
| T | FbxATand (const T x) |
| float | FbxATan (const float y, const float x) |
| double | FbxATan (const double y, const double x) |
| template<class T > | |
| T | FbxATand (const T y, const T x) |
| template<class T > | |
| T | FbxNorm (const T x, const T y) |
| template<class T > | |
| T | FbxNorm (const T x, const T y, const T z) |
| template<class T > | |
| T | FbxNorm (const T w, const T x, const T y, const T z) |
| template<class T > | |
| T | FbxHypot (const T x, const T y) |
| template<class T > | |
| T | FbxHypot (const T x, const T y, const T z) |
| template<class T > | |
| T | FbxHypot (const T w, const T x, const T y, const T z) |
| float | FbxASin (const float x) |
| float | FbxACos (const float x) |
| double | FbxACos (const double x) |
| template<class T > | |
| int | FbxBitCount (const T x) |
| template<class T > | |
| void | FbxFixInfinite (T &x) |
| template<class T > | |
| T | FbxExp (const T x) |
| template<class T > | |
| T | FbxLog (const T x) |
| template<class T > | |
| T | FbxSin (const T x) |
| template<class T > | |
| T | FbxASin (const T x) |
| template<class T > | |
| T | FbxACos (const T x) |
| template<class T > | |
| T | FbxATan (const T x) |
| template<class T > | |
| T | FbxATan (const T y, const T x) |
Variables |
|
| FBXSDK_DLL const double | FbxIdentityMatrix [4][4] |
| FBXSDK_DLL const FbxVector4 | FbxZeroVector4 |
| #define FBXSDK_PI 3.1415926535897932384626433832795028841971693993751 |
| #define FBXSDK_PI_DIV_2 1.5707963267948966192313216916397514420985846996875 |
| #define FBXSDK_PI_DIV_180 0.017453292519943295769236907684886127134428718885417 |
| #define FBXSDK_180_DIV_PI 57.295779513082320876798154814105170332405472466565 |
| #define FBXSDK_1_DIV_LN2 1.4426950408889634073599246810018921374266459541530 |
| #define FBXSDK_DEG_TO_RAD FBXSDK_PI_DIV_180 |
| #define FBXSDK_RAD_TO_DEG FBXSDK_180_DIV_PI |
| #define FBXSDK_IN_TO_CM 2.54 |
| #define FBXSDK_CM_TO_IN 0.393700787 |
| #define FBXSDK_IN_TO_MM 25.4 |
| #define FBXSDK_MM_TO_IN 0.0393700787 |
| #define FBXSDK_FT_TO_M 0.3048 |
| #define FBXSDK_M_TO_FT 3.2808399 |
| #define FBXSDK_YD_TO_FT 3 |
| #define FBXSDK_FT_TO_YD 0.333333333 |
| #define FBXSDK_KM_TO_MILE 0.621371192 |
| #define FBXSDK_MILE_TO_KM 1.609344 |
| #define FBXSDK_YD_TO_M 0.9144 |
| #define FBXSDK_M_TO_YD 1.0936133 |
| #define EulerOrder | ( | EAxis, | |
| EParity, | |||
| ERepeat | |||
| ) | (((EAxis) << 2) | (EParity) | (ERepeat)) |
| enum EFbxRotationOrder |
Rotation order flags.
Each rotate order produces a different end orientation. For example, if the rotation order for an object is set to XYZ, the object first rotates about its X-axis, then its Y-axis, and finally its Z-axis.
| enum EFbxQuatInterpMode |
Quaternion interpolation modes.
| float FbxFloor | ( | const float | x | ) | [inline] |
| double FbxFloor | ( | const double | x | ) | [inline] |
| float FbxCeil | ( | const float | x | ) | [inline] |
| double FbxCeil | ( | const double | x | ) | [inline] |
| T FbxSign | ( | const T | x | ) | [inline] |
| T FbxRound | ( | const T | x | ) | [inline] |
| FbxULongLong FbxAbs | ( | const FbxULongLong | x | ) | [inline] |
| T FbxAbs | ( | const T | x | ) | [inline] |
| T FbxAbs | ( | const T | x, |
| const T | y | ||
| ) | [inline] |
| T FbxClamp | ( | const T | value, |
| const T | min, | ||
| const T | max | ||
| ) | [inline] |
| bool FbxEqual | ( | const T | x, |
| const T | y, | ||
| const T | e =
FBXSDK_TOLERANCE |
||
| ) | [inline] |
| bool FbxEqual | ( | const FbxDouble2 & | x, |
| const FbxDouble2 & | y, | ||
| const double | e =
FBXSDK_TOLERANCE |
||
| ) | [inline] |
| bool FbxEqual | ( | const FbxDouble3 & | x, |
| const FbxDouble3 & | y, | ||
| const double | e =
FBXSDK_TOLERANCE |
||
| ) | [inline] |
| bool FbxEqual | ( | const FbxDouble4 & | x, |
| const FbxDouble4 & | y, | ||
| const double | e =
FBXSDK_TOLERANCE |
||
| ) | [inline] |
| bool FbxEqual | ( | const FbxVector2 & | x, |
| const FbxVector2 & | y, | ||
| const double | e =
FBXSDK_TOLERANCE |
||
| ) | [inline] |
| bool FbxEqual | ( | const FbxVector4 & | x, |
| const FbxVector4 & | y, | ||
| const double | e =
FBXSDK_TOLERANCE |
||
| ) | [inline] |
| bool FbxEqual | ( | const FbxAMatrix & | x, |
| const FbxAMatrix & | y, | ||
| const double | e =
FBXSDK_TOLERANCE |
||
| ) | [inline] |
| T FbxReciprocal | ( | const T | x | ) | [inline] |
| double FbxSqrt | ( | const double | x | ) | [inline] |
| float FbxSqrt | ( | const float | x | ) | [inline] |
| T FbxSqrt | ( | const T | x | ) | [inline] |
| float FbxExp | ( | const float | x | ) | [inline] |
| double FbxExp | ( | const double | x | ) | [inline] |
| T FbxPow | ( | const T | x, |
| const T | y | ||
| ) | [inline] |
| float FbxLog | ( | const float | x | ) | [inline] |
| double FbxLog | ( | const double | x | ) | [inline] |
| T FbxLog2 | ( | const T | x | ) | [inline] |
Definition at line 328 of file fbxmath.h.
{
return FbxLog(x) * T(FBXSDK_1_DIV_LN2);
}
| float FbxSin | ( | const float | x | ) | [inline] |
| double FbxSin | ( | const double | x | ) | [inline] |
| float FbxCos | ( | const float | x | ) | [inline] |
| double FbxCos | ( | const double | x | ) | [inline] |
| float FbxTan | ( | const float | x | ) | [inline] |
| double FbxTan | ( | const double | x | ) | [inline] |
| T FbxCos | ( | const T | x | ) | [inline] |
| T FbxSinCos | ( | const T | x, |
| T * | y | ||
| ) | [inline] |
| T FbxSinCosd | ( | const T | x, |
| T * | y | ||
| ) | [inline] |
Definition at line 372 of file fbxmath.h.
{
return FbxSinCos(T(x * FBXSDK_PI_DIV_180), y);
}
| double FbxASin | ( | const double | x | ) | [inline] |
| T FbxASind | ( | const T | x | ) | [inline] |
Definition at line 382 of file fbxmath.h.
{
return FbxASin(x) * FBXSDK_180_DIV_PI;
}
| T FbxACosd | ( | const T | x | ) | [inline] |
Definition at line 387 of file fbxmath.h.
{
return FbxACos(x) * FBXSDK_180_DIV_PI;
}
| float FbxATan | ( | const float | x | ) | [inline] |
| double FbxATan | ( | const double | x | ) | [inline] |
| T FbxATand | ( | const T | x | ) | [inline] |
Definition at line 402 of file fbxmath.h.
{
return FbxATan(x) * FBXSDK_180_DIV_PI;
}
| float FbxATan | ( | const float | y, |
| const float | x | ||
| ) | [inline] |
| double FbxATan | ( | const double | y, |
| const double | x | ||
| ) | [inline] |
| T FbxATand | ( | const T | y, |
| const T | x | ||
| ) | [inline] |
Definition at line 417 of file fbxmath.h.
{
return FbxATan(y, x) * FBXSDK_180_DIV_PI;
}
| T FbxNorm | ( | const T | x, |
| const T | y | ||
| ) | [inline] |
| T FbxNorm | ( | const T | x, |
| const T | y, | ||
| const T | z | ||
| ) | [inline] |
| T FbxNorm | ( | const T | w, |
| const T | x, | ||
| const T | y, | ||
| const T | z | ||
| ) | [inline] |
| T FbxHypot | ( | const T | x, |
| const T | y | ||
| ) | [inline] |
| T FbxHypot | ( | const T | x, |
| const T | y, | ||
| const T | z | ||
| ) | [inline] |
| T FbxHypot | ( | const T | w, |
| const T | x, | ||
| const T | y, | ||
| const T | z | ||
| ) | [inline] |
| float FbxASin | ( | const float | x | ) | [inline] |
| float FbxACos | ( | const float | x | ) | [inline] |
| double FbxACos | ( | const double | x | ) | [inline] |
| int FbxBitCount | ( | const T | x | ) | [inline] |
| void FbxFixInfinite | ( | T & | x | ) | [inline] |
| T FbxExp | ( | const T | x | ) | [inline] |
| T FbxLog | ( | const T | x | ) | [inline] |
| T FbxSin | ( | const T | x | ) | [inline] |
| T FbxASin | ( | const T | x | ) | [inline] |
| T FbxACos | ( | const T | x | ) | [inline] |
| T FbxATan | ( | const T | x | ) | [inline] |
| T FbxATan | ( | const T | y, |
| const T | x | ||
| ) | [inline] |
| FBXSDK_DLL const double FbxIdentityMatrix[4][4] |
| FBXSDK_DLL const FbxVector4 FbxZeroVector4 |