Cvector3DT
C++ | Python |
---|---|
Cvector3DT<Cprecision> | Cvector, CfVector. |
Template class that describes a 3D vector.
Inherited by
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 | Â |
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â