Cvector3DT

C++Python

Cvector3DT<Cprecision>

Cvector, CfVector.

Template class that describes a 3D vector.

Inherited by

Crgb and Cxyz.

Typedefs

Cvector3DT<float>CfVector
Cvector3DT<double>Cvector
CvectorCpoint (only C++)
CfVectorCfPoint (only C++)

Properties

TypeNameDescription
Cprecisionx, r, u1st element of the vector (only C++).
Cprecisiony, g, v2nd element of the vector (only C++).
Cprecisionz, b, w3rd element of the vector (only C++).
Cprecision[3]pValuesVector containing all values (only C++).
Cprecision[3]pChannelsVector containing all values (only C++).

Methods

NameDescription
Cvector3DTClass constructor.
x, u, rGets the 1st element (only Python).
y, g, vGets the 2nd element (only Python).
z, b, wGets the 3rd element (only Python).
[]Gets the vector element by index [0-2] (only Python).
isNullChecks all elements are zero.
setZeroSets all elements to zero.
getSummatoryReturns X+Y+Z.
directorDirector vector.
assignInitializes vector values.
operator < 
operator > 
operator == 
isEqual 
absoluteSets all values to its absolute value.
negateNegates 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 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Â