Versions Compared

Key

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

...

Template class that describes a 3D vector.

...

Anchor

...

typedefs

...

typedefs

...

Typedefs

cvectorcpointcvpoint
Cvector3DT<float>CfVector
Anchor
cvector
Cvector3DT<double>Cvector
Anchor
cpoint
CvectorCpoint (only C++)
Anchor
cvpoint
CfVectorCfPoint (only C++)

...

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