C++ | Python |
---|---|
Cvector3DT<Cprecision> | Cvector, CfVector. |
Template class that describes a 3D vector.
Inherited by
Anchor | ||||
---|---|---|---|---|
|
Typedefs
Cvector3DT<float> | CfVector |
---|---|
Cvector3DT<double> | Cvector |
Cvector | Cpoint (only C++) |
CfVector | CfPoint (only C++) |
Properties
Type | Name | Description |
---|---|---|
Cprecision | x, r, u | 1st element of the vector (only C++). |
Cprecision | y, g, v | 2nd element of the vector (only C++). |
Cprecision | z, b, w | 3rd element of the vector (only C++). |
Cprecision[3] | pValues | Vector containing all values (only C++). |
Cprecision[3] | pChannels | Vector containing all values (only C++). |
Methods
Name | Description |
---|---|
Cvector3DT | Class constructor. |
x, u, r | Gets the 1st element (only Python). |
y, g, v | Gets the 2nd element (only Python). |
z, b, w | Gets the 3rd element (only Python). |
[] | Gets the vector element by index [0-2] (only Python). |
isNull | Checks all elements are zero. |
setZero | Sets all elements to zero. |
getSummatory | Returns X+Y+Z. |
director | Director vector. |
assign | Initializes vector values. |
operator < | |
operator > | |
operator == | |
isEqual | |
absolute | Sets all values to its absolute value. |
negate | Negates all values (vec.x = -vec.x ... ). |
operator + | |
operator += | |
add | |
operator - | |
operator -= | |
substract | |
operator * | |
operator *= | |
scale | |
scaleAdd | |
scaleSubstract | |
midPoint | |
product | |
invert | |
dot | |
cross | |
norm | |
squareNorm | |
normalize |