This reference page is linked to from the following overview topics: Layered Textures, List of Python FBX classes.
FBX SDK 4-elements vector class.
Common/GeometryUtility.cxx, ExportDocument/main.cxx, ExportScene01/main.cxx, ExportScene02/main.cxx, ExportScene03/main.cxx, ExportScene04/main.cxx, ExportScene05/main.cxx, ImportScene/DisplayCommon.cxx, 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/main.cxx, UIExamples/CubeCreator/SDK_Utility.cxx, UIExamples/SceneTreeView/SDK_Utility.cxx, UserProperties/main.cxx, ViewScene/DrawScene.cxx, ViewScene/GetPosition.cxx, ViewScene/GlFunctions.cxx, ViewScene/GlFunctions.h, ViewScene/main.cxx, ViewScene/SetCamera.cxx, and ViewScene/SetCamera.h.
Definition at line 52 of file kfbxvector4.h.
#include <kfbxvector4.h>
Public Member Functions |
|
void | FixWeirdValue () |
Constructors and Destructor |
|
KFbxVector4 () | |
Constructor. |
|
KFbxVector4 (const KFbxVector4 &pVector4) | |
Copy constructor. |
|
KFbxVector4 (double pX, double pY, double pZ, double pW=1.0) | |
Constructor. |
|
KFbxVector4 (const double pValue[4]) | |
Constructor. |
|
KFbxVector4 (const fbxDouble3 &pValue) | |
Constructor. |
|
~KFbxVector4 () | |
Destructor. |
|
Access |
|
KFbxVector4 & | operator= (const KFbxVector4 &pVector4) |
Assignment operation. |
|
KFbxVector4 & | operator= (const double *pValue) |
Assignment operation. |
|
KFbxVector4 & | operator= (const fbxDouble3 &pValue) |
Assignment operation. |
|
double & | operator[] (int pIndex) |
Accessor. |
|
const double & | operator[] (int pIndex) const |
Accessor. |
|
double | GetAt (int pIndex) const |
Get a vector element. |
|
void | SetAt (int pIndex, double pValue) |
Set a vector element. |
|
void | Set (double pX, double pY, double pZ, double pW=1.0) |
Set vector. |
|
Scalar Operations |
|
KFbxVector4 | operator+ (double pValue) const |
Add a value to all vector components.
|
|
KFbxVector4 | operator- (double pValue) const |
Subtract a value from all vector components.
|
|
KFbxVector4 | operator* (double pValue) const |
Multiply a value to all vector components.
|
|
KFbxVector4 | operator/ (double pValue) const |
Divide all vector components by a value.
|
|
KFbxVector4 & | operator+= (double pValue) |
Add a value to all vector components.
|
|
KFbxVector4 & | operator-= (double pValue) |
Subtract a value from all vector components.
|
|
KFbxVector4 & | operator*= (double pValue) |
Multiply a value to all vector elements.
|
|
KFbxVector4 & | operator/= (double pValue) |
Divide all vector elements by a value.
|
|
Vector Operations |
|
KFbxVector4 | operator- () const |
Unary minus operator. |
|
KFbxVector4 | operator+ (const KFbxVector4 &pVector) const |
Add two vectors together. |
|
KFbxVector4 | operator- (const KFbxVector4 &pVector) const |
Subtract a vector from another vector.
|
|
KFbxVector4 | operator* (const KFbxVector4 &pVector) const |
Memberwise multiplication of two vectors.
|
|
KFbxVector4 | operator/ (const KFbxVector4 &pVector) const |
Memberwise division of a vector with another
vector. |
|
KFbxVector4 & | operator+= (const KFbxVector4 &pVector) |
Add two vectors together. |
|
KFbxVector4 & | operator-= (const KFbxVector4 &pVector) |
Subtract a vector from another vector.
|
|
KFbxVector4 & | operator*= (const KFbxVector4 &pVector) |
Memberwise multiplication of two vectors.
|
|
KFbxVector4 & | operator/= (const KFbxVector4 &pVector) |
Memberwise division of a vector with another
vector. |
|
double | DotProduct (const KFbxVector4 &pVector) const |
Calculate the dot product of two vectors.
|
|
KFbxVector4 | CrossProduct (const KFbxVector4 &pVector) const |
Calculate the cross product of two vectors.
|
|
static bool | AxisAlignmentInEulerAngle (const KFbxVector4 &pAB, const KFbxVector4 &pA, const KFbxVector4 &pB, KFbxVector4 &pAngles) |
Calculate the Euler rotation required to
align axis pAB-pA on pAB-pB. |
|
Boolean Operations |
|
bool | operator== (const KFbxVector4 &pVector) const |
Equivalence operator. |
|
bool | operator!= (const KFbxVector4 &pVector) const |
Non equivalence operator. |
|
Length |
|
double | Length () const |
Get the vector's length. |
|
double | SquareLength () const |
Get the vector's length squared. |
|
double | Distance (const KFbxVector4 &pVector) const |
Find the distance between 2 vectors.
|
|
void | Normalize () |
Normalize the vector, length set to 1.
|
|
void | SetXYZ (const KFbxQuaternion pQuat) |
Set the Euler XYZ from a Quaternion.
|
|
Casting |
|
operator double * () | |
Cast the vector in a double pointer.
|
|
operator const double * () const | |
Cast the vector in a const double pointer.
|
KFbxVector4 | ( | ) |
Constructor.
KFbxVector4 | ( | const KFbxVector4 & | pVector4 | ) |
Copy constructor.
pVector4 | The vector copied to this one. |
KFbxVector4 | ( | double | pX, |
double | pY, | ||
double | pZ, | ||
double | pW = 1.0 |
||
) |
Constructor.
pX | X component. |
pY | Y component. |
pZ | Z component. |
pW | W component. |
KFbxVector4 | ( | const double | pValue[4] | ) |
Constructor.
pValue | X,Y,Z,W components. |
KFbxVector4 | ( | const fbxDouble3 & | pValue | ) |
Constructor.
pValue | X,Y,Z components. |
~KFbxVector4 | ( | ) |
Destructor.
KFbxVector4& operator= | ( | const KFbxVector4 & | pVector4 | ) |
Assignment operation.
pVector4 | The vector assigned to this one. |
KFbxVector4& operator= | ( | const double * | pValue | ) |
Assignment operation.
pValue | The pointer to an array whose elements are assigned to this vector. |
KFbxVector4& operator= | ( | const fbxDouble3 & | pValue | ) |
Assignment operation.
pValue | The vector with 3 elements assigned to this vector. |
double& operator[] | ( | int | pIndex | ) |
Accessor.
pIndex | The index of the component to access. |
Reimplemented from fbxVectorTemplate4< T >.
const double& operator[] | ( | int | pIndex | ) | const |
Accessor.
pIndex | The index of the component to access. |
Reimplemented from fbxVectorTemplate4< T >.
double GetAt | ( | int | pIndex | ) | const |
Get a vector element.
pIndex | The index of the component to access. |
void SetAt | ( | int | pIndex, |
double | pValue | ||
) |
Set a vector element.
pIndex | The index of the component to set. |
pValue | The new value to set the component. |
void Set | ( | double | pX, |
double | pY, | ||
double | pZ, | ||
double | pW = 1.0 |
||
) |
Set vector.
pX | The X component value. |
pY | The Y component value. |
pZ | The Z component value. |
pW | The W component value. |
KFbxVector4 operator+ | ( | double | pValue | ) | const |
Add a value to all vector components.
pValue | The value to add to each component of the vector. |
KFbxVector4 operator- | ( | double | pValue | ) | const |
Subtract a value from all vector components.
pValue | The value to subtract from each component of the vector. |
KFbxVector4 operator* | ( | double | pValue | ) | const |
Multiply a value to all vector components.
pValue | The value multiplying each component of the vector. |
KFbxVector4 operator/ | ( | double | pValue | ) | const |
Divide all vector components by a value.
pValue | The value dividing each component of the vector. |
KFbxVector4& operator+= | ( | double | pValue | ) |
Add a value to all vector components.
pValue | The value to add to each component of the vector. |
KFbxVector4& operator-= | ( | double | pValue | ) |
Subtract a value from all vector components.
pValue | The value to subtract from each component of the vector. |
KFbxVector4& operator*= | ( | double | pValue | ) |
Multiply a value to all vector elements.
pValue | The value multiplying each component of the vector. |
KFbxVector4& operator/= | ( | double | pValue | ) |
Divide all vector elements by a value.
pValue | The value dividing each component of the vector. |
KFbxVector4 operator- | ( | ) | const |
Unary minus operator.
this
.KFbxVector4 operator+ | ( | const KFbxVector4 & | pVector | ) | const |
Add two vectors together.
pVector | Vector to add. |
KFbxVector4 operator- | ( | const KFbxVector4 & | pVector | ) | const |
Subtract a vector from another vector.
pVector | Vector to subtract. |
KFbxVector4 operator* | ( | const KFbxVector4 & | pVector | ) | const |
Memberwise multiplication of two vectors.
pVector | Multiplying vector. |
KFbxVector4 operator/ | ( | const KFbxVector4 & | pVector | ) | const |
Memberwise division of a vector with another vector.
pVector | Dividing vector. |
KFbxVector4& operator+= | ( | const KFbxVector4 & | pVector | ) |
Add two vectors together.
pVector | Vector to add. |
KFbxVector4& operator-= | ( | const KFbxVector4 & | pVector | ) |
Subtract a vector from another vector.
pVector | Vector to subtract. |
KFbxVector4& operator*= | ( | const KFbxVector4 & | pVector | ) |
Memberwise multiplication of two vectors.
pVector | Multiplying vector. |
KFbxVector4& operator/= | ( | const KFbxVector4 & | pVector | ) |
Memberwise division of a vector with another vector.
pVector | Dividing vector. |
double DotProduct | ( | const KFbxVector4 & | pVector | ) | const |
Calculate the dot product of two vectors.
pVector | The second vector. |
KFbxVector4 CrossProduct | ( | const KFbxVector4 & | pVector | ) | const |
Calculate the cross product of two vectors.
pVector | The second vector. |
static bool AxisAlignmentInEulerAngle | ( | const KFbxVector4 & | pAB, |
const KFbxVector4 & | pA, | ||
const KFbxVector4 & | pB, | ||
KFbxVector4 & | pAngles | ||
) | [static] |
Calculate the Euler rotation required to align axis pAB-pA on pAB-pB.
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. |
true
on success.bool operator== | ( | const KFbxVector4 & | pVector | ) | const |
Equivalence operator.
pVector | The vector to be compared to this. |
true
if the two vectors are equal (each element is
within a 1.0e-6 tolerance) and false
otherwise.bool operator!= | ( | const KFbxVector4 & | pVector | ) | const |
Non equivalence operator.
pVector | The vector to be compared to this. |
false
if the two vectors are equal (each element
is within a 1.0e-6 tolerance) and true
otherwise.double Length | ( | ) | const |
Get the vector's length.
double SquareLength | ( | ) | const |
Get the vector's length squared.
double Distance | ( | const KFbxVector4 & | pVector | ) | const |
Find the distance between 2 vectors.
pVector | The second vector. |
void Normalize | ( | ) |
Normalize the vector, length set to 1.
void SetXYZ | ( | const KFbxQuaternion | pQuat | ) |
Set the Euler XYZ from a Quaternion.
pQuat | Quaternion from which Euler XYZ information is got. |
operator double * | ( | ) |
Cast the vector in a double pointer.
operator const double * | ( | ) | const |
Cast the vector in a const double pointer.
void FixWeirdValue | ( | ) |