#include <fbxvector4.h>
A four double mathematic vector class.
- Examples:
- Common/GeometryUtility.cxx, ExportDocument/main.cxx, ExportScene01/main.cxx, ExportScene02/main.cxx, ExportScene03/main.cxx, ExportScene04/main.cxx, ExportScene05/main.cxx, ImportScene/DisplayCache.cxx, ImportScene/DisplayCommon.cxx, ImportScene/DisplayCommon.h, ImportScene/DisplayMaterial.cxx, ImportScene/DisplayMesh.cxx, ImportScene/DisplayNurb.cxx, ImportScene/DisplayPatch.cxx, ImportScene/DisplayPivotsAndLimits.cxx, ImportScene/DisplayPose.cxx, ImportScene/DisplayShape.cxx, ImportScene/main.cxx, Instances/main.cxx, Layers/main.cxx, Normals/main.cxx, Pivot/main.cxx, ProceduralTexture/main.cxx, Transformations/DisplayCommon.cxx, Transformations/DisplayCommon.h, Transformations/main.cxx, UserProperties/main.cxx, ViewScene/DrawScene.cxx, ViewScene/GetPosition.cxx, ViewScene/GlFunctions.cxx, ViewScene/GlFunctions.h, ViewScene/SceneCache.cxx, ViewScene/SceneCache.h, ViewScene/SceneContext.h, ViewScene/SetCamera.cxx, and ViewScene/SetCamera.h.
Definition at line 25 of file fbxvector4.h.
◆ FbxVector4() [1/5]
◆ FbxVector4() [2/5]
Copy constructor.
- Parameters
-
pVector4 | The vector copied to this one. |
◆ FbxVector4() [3/5]
FbxVector4 |
( |
double |
pX, |
|
|
double |
pY, |
|
|
double |
pZ, |
|
|
double |
pW = 1.0 |
|
) |
| |
Constructor.
- Parameters
-
pX | X component. |
pY | Y component. |
pZ | Z component. |
pW | W component. |
◆ FbxVector4() [4/5]
Constructor.
- Parameters
-
pValue | X,Y,Z,W components. |
◆ FbxVector4() [5/5]
◆ operator=() [1/3]
Assignment operation.
- Parameters
-
pVector4 | The vector assigned to this one. |
- Returns
- This vector after assignment.
◆ operator=() [2/3]
Assignment operation.
- Parameters
-
pValue | The pointer to an array whose elements are assigned to this vector. |
- Returns
- This vector after assignment.
◆ operator=() [3/3]
Assignment operation.
- Parameters
-
pValue | The vector with 3 elements assigned to this vector. |
- Returns
- This vector after assignment.
◆ Set()
void Set |
( |
double |
pX, |
|
|
double |
pY, |
|
|
double |
pZ, |
|
|
double |
pW = 1.0 |
|
) |
| |
◆ operator+() [1/2]
Add a value to all vector components.
- Parameters
-
pValue | The value to add to each component of the vector. |
- Returns
- New vector.
◆ operator-() [1/3]
Subtract a value from all vector components.
- Parameters
-
pValue | The value to subtract from each component of the vector. |
- Returns
- New vector.
◆ operator*() [1/2]
Multiply a value to all vector components.
- Parameters
-
pValue | The value multiplying each component of the vector. |
- Returns
- New vector.
◆ operator/() [1/2]
Divide all vector components by a value.
- Parameters
-
pValue | The value dividing each component of the vector. |
- Returns
- New vector.
◆ operator+=() [1/2]
Add a value to all vector components.
- Parameters
-
pValue | The value to add to each component of the vector. |
- Returns
- this updated with the operation result.
◆ operator-=() [1/2]
Subtract a value from all vector components.
- Parameters
-
pValue | The value to subtract from each component of the vector. |
- Returns
- this updated with the operation result.
◆ operator*=() [1/2]
Multiply a value to all vector elements.
- Parameters
-
pValue | The value multiplying each component of the vector. |
- Returns
- this updated with the operation result.
◆ operator/=() [1/2]
Divide all vector elements by a value.
- Parameters
-
pValue | The value dividing each component of the vector. |
- Returns
- this updated with the operation result.
◆ operator-() [2/3]
Unary minus operator.
- Returns
- The vector that is the negation of
this
.
◆ operator+() [2/2]
Add two vectors together.
- Parameters
-
- Returns
- The vector v' = this + pVector.
◆ operator-() [3/3]
Subtract a vector from another vector.
- Parameters
-
pVector | Vector to subtract. |
- Returns
- The vector v' = this - pVector.
◆ operator*() [2/2]
Memberwise multiplication of two vectors.
- Parameters
-
pVector | Multiplying vector. |
- Returns
- The vector v' = this * pVector.
◆ operator/() [2/2]
Memberwise division of a vector with another vector.
- Parameters
-
- Returns
- The vector v[i]' = this[i] / pVector[i].
◆ operator+=() [2/2]
Add two vectors together.
- Parameters
-
- Returns
- this updated with the operation result.
◆ operator-=() [2/2]
Subtract a vector from another vector.
- Parameters
-
pVector | Vector to subtract. |
- Returns
- this updated with the operation result.
◆ operator*=() [2/2]
Memberwise multiplication of two vectors.
- Parameters
-
pVector | Multiplying vector. |
- Returns
- this updated with the operation result.
◆ operator/=() [2/2]
Memberwise division of a vector with another vector.
- Parameters
-
- Returns
- this updated with the operation result.
◆ DotProduct()
double DotProduct |
( |
const FbxVector4 & |
pVector | ) |
const |
Calculate the dot product of two vectors.
- Parameters
-
pVector | The second vector. |
- Returns
- The dot product value.
◆ CrossProduct()
Calculate the cross product of two vectors.
- Parameters
-
pVector | The second vector. |
- Returns
- The cross product vector.
- Examples:
- ViewScene/SetCamera.cxx.
◆ AxisAlignmentInEulerAngle()
Calculate the Euler rotation required to align axis pAB-pA on pAB-pB.
- Parameters
-
pAB | The intersection of the 2 axis. |
pA | A point on axis to be aligned. |
pB | A point on reference axis. |
pAngles | Resulting euler angles. |
- Returns
true
on success.
- Examples:
- ExportScene04/main.cxx, and ViewScene/DrawScene.cxx.
◆ operator==()
bool operator== |
( |
const FbxVector4 & |
pVector | ) |
const |
Equivalence operator.
- Parameters
-
pVector | The vector to be compared to this. |
- Returns
true
if the two vectors are equal (each element is within a FBXSDK_TOLERANCE tolerance) and false
otherwise.
◆ operator!=()
bool operator!= |
( |
const FbxVector4 & |
pVector | ) |
const |
Non equivalence operator.
- Parameters
-
pVector | The vector to be compared to this. |
- Returns
false
if the two vectors are equal (each element is within a FBXSDK_TOLERANCE tolerance) and true
otherwise.
◆ Length()
◆ SquareLength()
double SquareLength |
( |
| ) |
const |
Get the vector's length squared.
- Returns
- The mathematical square length of the vector.
◆ Distance()
double Distance |
( |
const FbxVector4 & |
pVector | ) |
const |
Find the distance between 2 vectors.
- Parameters
-
pVector | The second vector. |
- Returns
- The mathematical distance between the two vectors.
◆ Normalize()
◆ SetXYZ()
Set the Euler XYZ from a Quaternion.
- Parameters
-
pQuat | Quaternion from which Euler XYZ information is got. |
◆ operator double *()
Cast the vector in a double pointer.
◆ operator const double *()
operator const double * |
( |
| ) |
const |
Cast the vector in a const double pointer.
◆ IsZero()
bool IsZero |
( |
int |
pSize = 4 | ) |
const |
Find out if the vector is equal to zero.
- Parameters
-
pSize | The number of element to test, starting at beginning. Value must range between [1, 4]. |
- Returns
true
if all elements of the vector are zero, false
otherwise.
◆ FixIncorrectValue()
void FixIncorrectValue |
( |
| ) |
|
The documentation for this class was generated from the following file: