#include <kfbxvector2.h>
Definition at line 52 of file kfbxvector2.h.
Constructors and Destructor |
|
KFbxVector2 () | |
Constructor. |
|
KFbxVector2 (const KFbxVector2 &pVector2) | |
Copy constructor. |
|
KFbxVector2 (double pX, double pY) | |
Constructor. |
|
~KFbxVector2 () | |
Destructor. |
|
Access |
|
KFbxVector2 & | operator= (const KFbxVector2 &pVector2) |
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) |
Set vector. |
|
Scalar Operations |
|
KFbxVector2 | operator+ (double pValue) const |
Add a value to all vector components.
|
|
KFbxVector2 | operator- (double pValue) const |
Subtract a value from all vector components.
|
|
KFbxVector2 | operator* (double pValue) const |
Multiply a value to all vector components.
|
|
KFbxVector2 | operator/ (double pValue) const |
Divide all vector components by a value.
|
|
KFbxVector2 & | operator+= (double pValue) |
Add a value to all vector components.
|
|
KFbxVector2 & | operator-= (double pValue) |
Subtract a value from all vector components.
|
|
KFbxVector2 & | operator*= (double pValue) |
Multiply a value to all vector elements.
|
|
KFbxVector2 & | operator/= (double pValue) |
Divide all vector elements by a value.
|
|
Vector Operations |
|
KFbxVector2 | operator- () const |
Unary minus operator. |
|
KFbxVector2 | operator+ (const KFbxVector2 &pVector) const |
Add two vectors together. |
|
KFbxVector2 | operator- (const KFbxVector2 &pVector) const |
Subtract a vector from another vector.
|
|
KFbxVector2 | operator* (const KFbxVector2 &pVector) const |
Memberwise multiplication of two vectors.
|
|
KFbxVector2 | operator/ (const KFbxVector2 &pVector) const |
Memberwise division of a vector with another
vector. |
|
KFbxVector2 & | operator+= (const KFbxVector2 &pVector) |
Add two vectors together. |
|
KFbxVector2 & | operator-= (const KFbxVector2 &pVector) |
Subtract a vector from another vector.
|
|
KFbxVector2 & | operator*= (const KFbxVector2 &pVector) |
Memberwise multiplication of two vectors.
|
|
KFbxVector2 & | operator/= (const KFbxVector2 &pVector) |
Memberwise division of a vector with another
vector. |
|
double | DotProduct (const KFbxVector2 &pVector) const |
Calculate the dot product of two vectors.
|
|
Boolean Operations |
|
bool | operator== (const KFbxVector2 &pVector) const |
Equivalence operator. |
|
bool | operator!= (const KFbxVector2 &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 KFbxVector2 &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.
|
KFbxVector2 | ( | ) |
Constructor.
KFbxVector2 | ( | const KFbxVector2 & | pVector2 | ) |
Copy constructor.
pVector2 | The vector copied to this one. |
KFbxVector2 | ( | double | pX, | |
double | pY | |||
) |
Constructor.
pX | X component. | |
pY | Y component. |
~KFbxVector2 | ( | ) |
Destructor.
KFbxVector2& operator= | ( | const KFbxVector2 & | pVector2 | ) |
Assignment operation.
pVector2 | The vector assigned to this one. |
Accessor.
pIndex | The index of the component to access. |
Reimplemented from fbxVectorTemplate2< double >.
Accessor.
pIndex | The index of the component to access. |
Reimplemented from fbxVectorTemplate2< double >.
Get a vector element.
pIndex | The index of the component to access. |
Set a vector element.
pIndex | The index of the component to set. | |
pValue | The new value to set the component. |
Set vector.
pX | The X component value. | |
pY | The Y component value. |
KFbxVector2 operator+ | ( | double | pValue | ) | const |
Add a value to all vector components.
pValue | The value to add to each component of the vector. |
KFbxVector2 operator- | ( | double | pValue | ) | const |
Subtract a value from all vector components.
pValue | The value to subtract from each component of the vector. |
KFbxVector2 operator* | ( | double | pValue | ) | const |
Multiply a value to all vector components.
pValue | The value multiplying each component of the vector. |
KFbxVector2 operator/ | ( | double | pValue | ) | const |
Divide all vector components by a value.
pValue | The value dividing each component of the vector. |
KFbxVector2& operator+= | ( | double | pValue | ) |
Add a value to all vector components.
pValue | The value to add to each component of the vector. |
KFbxVector2& operator-= | ( | double | pValue | ) |
Subtract a value from all vector components.
pValue | The value to subtract from each component of the vector. |
KFbxVector2& operator*= | ( | double | pValue | ) |
Multiply a value to all vector elements.
pValue | The value multiplying each component of the vector. |
KFbxVector2& operator/= | ( | double | pValue | ) |
Divide all vector elements by a value.
pValue | The value dividing each component of the vector. |
KFbxVector2 operator- | ( | ) | const |
Unary minus operator.
this
.KFbxVector2 operator+ | ( | const KFbxVector2 & | pVector | ) | const |
Add two vectors together.
pVector | Vector to add. |
KFbxVector2 operator- | ( | const KFbxVector2 & | pVector | ) | const |
Subtract a vector from another vector.
pVector | Vector to subtract. |
KFbxVector2 operator* | ( | const KFbxVector2 & | pVector | ) | const |
Memberwise multiplication of two vectors.
pVector | Multiplying vector. |
KFbxVector2 operator/ | ( | const KFbxVector2 & | pVector | ) | const |
Memberwise division of a vector with another vector.
pVector | Dividing vector. |
KFbxVector2& operator+= | ( | const KFbxVector2 & | pVector | ) |
Add two vectors together.
pVector | Vector to add. |
KFbxVector2& operator-= | ( | const KFbxVector2 & | pVector | ) |
Subtract a vector from another vector.
pVector | Vector to subtract. |
KFbxVector2& operator*= | ( | const KFbxVector2 & | pVector | ) |
Memberwise multiplication of two vectors.
pVector | Multiplying vector. |
KFbxVector2& operator/= | ( | const KFbxVector2 & | pVector | ) |
Memberwise division of a vector with another vector.
pVector | Dividing vector. |
double DotProduct | ( | const KFbxVector2 & | pVector | ) | const |
Calculate the dot product of two vectors.
pVector | The second vector. |
bool operator== | ( | const KFbxVector2 & | 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), false
otherwise.bool operator!= | ( | const KFbxVector2 & | 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), true
otherwise.double Length | ( | ) | const |
Get the vector's length.
double SquareLength | ( | ) | const |
Get the vector's length squared.
double Distance | ( | const KFbxVector2 & | 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.