Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Template class that describes a 3D vector.

Inherited by

Crgb and Cxyz.

Anchor
typedefs
typedefs

Typedefs

...

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