This reference page is linked to from the following overview topics: List of Python Fbx classes.
#include <fbxvector2.h>
A two double mathematic vector class.
Common/GeometryUtility.cxx, ExportDocument/main.cxx, ExportScene03/main.cxx, ImportScene/DisplayCommon.cxx, ImportScene/DisplayCommon.h, ImportScene/DisplayMaterial.cxx, Instances/main.cxx, Layers/main.cxx, ProceduralTexture/main.cxx, Transformations/DisplayCommon.cxx, Transformations/DisplayCommon.h, UI_Examples/CubeCreator/SDK_Utility.cxx, UVSample/main.cxx, and ViewScene/SceneCache.cxx.
Definition at line 23 of file fbxvector2.h.
Public Member Functions |
|
| bool | IsZero (int pSize=2) const |
| Find out if the vector is equal to zero.
|
|
| void | FixIncorrectValue () |
Constructors and Destructor |
|
| FbxVector2 () | |
| Constructor. |
|
| FbxVector2 (const FbxVector2 &pVector2) | |
| Copy constructor. |
|
| FbxVector2 (double pX, double pY) | |
| Constructor. |
|
Access |
|
| FbxVector2 & | operator= (const FbxVector2 &pVector2) |
| Assignment operation. |
|
| void | Set (double pX, double pY) |
| Set vector. |
|
Scalar Operations |
|
| FbxVector2 | operator+ (double pValue) const |
| Add a value to all vector components.
|
|
| FbxVector2 | operator- (double pValue) const |
| Subtract a value from all vector components.
|
|
| FbxVector2 | operator* (double pValue) const |
| Multiply a value to all vector components.
|
|
| FbxVector2 | operator/ (double pValue) const |
| Divide all vector components by a value.
|
|
| FbxVector2 & | operator+= (double pValue) |
| Add a value to all vector components.
|
|
| FbxVector2 & | operator-= (double pValue) |
| Subtract a value from all vector components.
|
|
| FbxVector2 & | operator*= (double pValue) |
| Multiply a value to all vector elements.
|
|
| FbxVector2 & | operator/= (double pValue) |
| Divide all vector elements by a value.
|
|
Vector Operations |
|
| FbxVector2 | operator- () const |
| Unary minus operator. |
|
| FbxVector2 | operator+ (const FbxVector2 &pVector) const |
| Add two vectors together. |
|
| FbxVector2 | operator- (const FbxVector2 &pVector) const |
| Subtract a vector from another vector.
|
|
| FbxVector2 | operator* (const FbxVector2 &pVector) const |
| Memberwise multiplication of two vectors.
|
|
| FbxVector2 | operator/ (const FbxVector2 &pVector) const |
| Memberwise division of a vector with another
vector. |
|
| FbxVector2 & | operator+= (const FbxVector2 &pVector) |
| Add two vectors together. |
|
| FbxVector2 & | operator-= (const FbxVector2 &pVector) |
| Subtract a vector from another vector.
|
|
| FbxVector2 & | operator*= (const FbxVector2 &pVector) |
| Memberwise multiplication of two vectors.
|
|
| FbxVector2 & | operator/= (const FbxVector2 &pVector) |
| Memberwise division of a vector with another
vector. |
|
| double | DotProduct (const FbxVector2 &pVector) const |
| Calculate the dot product of two vectors.
|
|
Boolean Operations |
|
| bool | operator== (const FbxVector2 &pVector) const |
| Equivalence operator. |
|
| bool | operator!= (const FbxVector2 &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 FbxVector2 &pVector) const |
| Find the distance between 2 vectors.
|
|
| void | Normalize () |
| Normalize the vector, length set to 1.
|
|
Casting |
|
| operator double * () | |
| Cast the vector in a double pointer.
|
|
| operator const double * () const | |
| Cast the vector in a const double pointer.
|
|
| FbxVector2 | ( | ) |
Constructor.
| FbxVector2 | ( | const FbxVector2 & | pVector2 | ) |
Copy constructor.
| pVector2 | The vector copied to this one. |
| FbxVector2 | ( | double | pX, |
| double | pY | ||
| ) |
Constructor.
| pX | X component. |
| pY | Y component. |
| FbxVector2& operator= | ( | const FbxVector2 & | pVector2 | ) |
Assignment operation.
| pVector2 | The vector assigned to this one. |
| void Set | ( | double | pX, |
| double | pY | ||
| ) |
Set vector.
| pX | The X component value. |
| pY | The Y component value. |
| FbxVector2 operator+ | ( | double | pValue | ) | const |
Add a value to all vector components.
| pValue | The value to add to each component of the vector. |
| FbxVector2 operator- | ( | double | pValue | ) | const |
Subtract a value from all vector components.
| pValue | The value to subtract from each component of the vector. |
| FbxVector2 operator* | ( | double | pValue | ) | const |
Multiply a value to all vector components.
| pValue | The value multiplying each component of the vector. |
| FbxVector2 operator/ | ( | double | pValue | ) | const |
Divide all vector components by a value.
| pValue | The value dividing each component of the vector. |
| FbxVector2& operator+= | ( | double | pValue | ) |
Add a value to all vector components.
| pValue | The value to add to each component of the vector. |
| FbxVector2& operator-= | ( | double | pValue | ) |
Subtract a value from all vector components.
| pValue | The value to subtract from each component of the vector. |
| FbxVector2& operator*= | ( | double | pValue | ) |
Multiply a value to all vector elements.
| pValue | The value multiplying each component of the vector. |
| FbxVector2& operator/= | ( | double | pValue | ) |
Divide all vector elements by a value.
| pValue | The value dividing each component of the vector. |
| FbxVector2 operator- | ( | ) | const |
Unary minus operator.
this.| FbxVector2 operator+ | ( | const FbxVector2 & | pVector | ) | const |
Add two vectors together.
| pVector | Vector to add. |
| FbxVector2 operator- | ( | const FbxVector2 & | pVector | ) | const |
Subtract a vector from another vector.
| pVector | Vector to subtract. |
| FbxVector2 operator* | ( | const FbxVector2 & | pVector | ) | const |
Memberwise multiplication of two vectors.
| pVector | Multiplying vector. |
| FbxVector2 operator/ | ( | const FbxVector2 & | pVector | ) | const |
Memberwise division of a vector with another vector.
| pVector | Dividing vector. |
| FbxVector2& operator+= | ( | const FbxVector2 & | pVector | ) |
Add two vectors together.
| pVector | Vector to add. |
| FbxVector2& operator-= | ( | const FbxVector2 & | pVector | ) |
Subtract a vector from another vector.
| pVector | Vector to subtract. |
| FbxVector2& operator*= | ( | const FbxVector2 & | pVector | ) |
Memberwise multiplication of two vectors.
| pVector | Multiplying vector. |
| FbxVector2& operator/= | ( | const FbxVector2 & | pVector | ) |
Memberwise division of a vector with another vector.
| pVector | Dividing vector. |
| double DotProduct | ( | const FbxVector2 & | pVector | ) | const |
Calculate the dot product of two vectors.
| pVector | The second vector. |
| bool operator== | ( | const FbxVector2 & | pVector | ) | const |
Equivalence operator.
| pVector | The vector to be compared to this. |
true if the two vectors are equal (each element is
within a FBXSDK_TOLERANCE tolerance), false
otherwise.| bool operator!= | ( | const FbxVector2 & | 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 FBXSDK_TOLERANCE tolerance), true
otherwise.| double Length | ( | ) | const |
| double SquareLength | ( | ) | const |
Get the vector's length squared.
| double Distance | ( | const FbxVector2 & | pVector | ) | const |
Find the distance between 2 vectors.
| pVector | The second vector. |
| void Normalize | ( | ) |
Normalize the vector, length set to 1.
| operator double * | ( | ) |
Cast the vector in a double pointer.
| operator const double * | ( | ) | const |
Cast the vector in a const double pointer.
| bool IsZero | ( | int | pSize = 2 |
) | const |
Find out if the vector is equal to zero.
| pSize | The number of element to test, starting at beginning. Value must range between [1, 2]. |
true if all elements of the vector are zero,
false otherwise.| void FixIncorrectValue | ( | ) |