#include <fbxvector2.h>
A two double mathematic vector class.
- Examples:
- 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, UVSample/main.cxx, and ViewScene/SceneCache.cxx.
Definition at line 23 of file fbxvector2.h.
◆ FbxVector2() [1/3]
◆ FbxVector2() [2/3]
Copy constructor.
- Parameters
-
pVector2 | The vector copied to this one. |
◆ FbxVector2() [3/3]
Constructor.
- Parameters
-
pX | X component. |
pY | Y component. |
◆ operator=()
Assignment operation.
- Parameters
-
pVector2 | The vector assigned to this one. |
- Returns
- This vector after assignment.
◆ Set()
void Set |
( |
double |
pX, |
|
|
double |
pY |
|
) |
| |
Set vector.
- Parameters
-
pX | The X component value. |
pY | The Y component value. |
◆ operator+() [1/2]
Add a value to all vector components.
- Parameters
-
pValue | The value to add to each component of the vector. |
- Returns
- A new vector with the result of adding pValue to each component of this vector.
◆ operator-() [1/3]
Subtract a value from all vector components.
- Parameters
-
pValue | The value to subtract from each component of the vector. |
- Returns
- A new vector with the result of subtracting pValue from each component of this vector.
◆ operator*() [1/2]
Multiply a value to all vector components.
- Parameters
-
pValue | The value multiplying each component of the vector. |
- Returns
- A new vector with the result of multiplying each component of this vector by pValue.
◆ operator/() [1/2]
Divide all vector components by a value.
- Parameters
-
pValue | The value dividing each component of the vector. |
- Returns
- A new vector with the result of dividing each component of this vector by pValue.
◆ operator+=() [1/2]
Add a value to all vector components.
- Parameters
-
pValue | The value to add to each component of the vector. |
- Returns
- The result of adding pValue to each component of this vector, replacing this vector.
◆ operator-=() [1/2]
Subtract a value from all vector components.
- Parameters
-
pValue | The value to subtract from each component of the vector. |
- Returns
- The result of subtracting pValue from each component of this vector, replacing this vector.
◆ operator*=() [1/2]
Multiply a value to all vector elements.
- Parameters
-
pValue | The value multiplying each component of the vector. |
- Returns
- The result of multiplying each component of this vector by pValue, replacing this vector.
◆ operator/=() [1/2]
Divide all vector elements by a value.
- Parameters
-
pValue | The value dividing each component of the vector. |
- Returns
- The result of multiplying each component of this vector by pValue, replacing this vector.
◆ 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 result of this vector + pVector.
◆ operator-() [3/3]
Subtract a vector from another vector.
- Parameters
-
pVector | Vector to subtract. |
- Returns
- The result of this vector - pVector.
◆ operator*() [2/2]
Memberwise multiplication of two vectors.
- Parameters
-
pVector | Multiplying vector. |
- Returns
- The result of this vector * pVector.
◆ operator/() [2/2]
Memberwise division of a vector with another vector.
- Parameters
-
- Returns
- The result of this vector / pVector.
◆ operator+=() [2/2]
Add two vectors together.
- Parameters
-
- Returns
- The result of this vector + pVector, replacing this vector.
◆ operator-=() [2/2]
Subtract a vector from another vector.
- Parameters
-
pVector | Vector to subtract. |
- Returns
- The result of this vector - pVector, replacing this vector.
◆ operator*=() [2/2]
Memberwise multiplication of two vectors.
- Parameters
-
pVector | Multiplying vector. |
- Returns
- The result of this vector * pVector, replacing this vector.
◆ operator/=() [2/2]
Memberwise division of a vector with another vector.
- Parameters
-
- Returns
- The result of this vector / pVector, replacing this vector.
◆ DotProduct()
double DotProduct |
( |
const FbxVector2 & |
pVector | ) |
const |
Calculate the dot product of two vectors.
- Parameters
-
pVector | The second vector. |
- Returns
- The dot product value.
◆ operator==()
bool operator== |
( |
const FbxVector2 & |
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), false
otherwise.
◆ operator!=()
bool operator!= |
( |
const FbxVector2 & |
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), true
otherwise.
◆ Length()
Get the vector's length.
- Returns
- The mathematical length of the vector.
◆ SquareLength()
double SquareLength |
( |
| ) |
const |
Get the vector's length squared.
- Returns
- The mathematical square length of the vector.
◆ Distance()
double Distance |
( |
const FbxVector2 & |
pVector | ) |
const |
Find the distance between 2 vectors.
- Parameters
-
pVector | The second vector. |
- Returns
- The mathematical distance between the two vectors.
◆ Normalize()
Normalize the vector, length set to 1.
◆ 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 = 2 | ) |
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, 2]. |
- 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: