Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Template class that describes a 3D vector.

...

Inherited by

Crgb and Cxyz.

Anchor

...

typedefs
typedefs

...

Typedefs

anchorCvector3DT<double>cpointCfVector
Cvector3DT<float>CfVector
cvectorcvectorCvector
Anchor
cpoint
CvectorCpoint (only C++)
Anchor
cvpointcvpointCfPoint (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 

 

 

...