Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
C++Python
Cvector2DT<Cprecision>Cvector2D, CfVector2D

Template class that describes a 2D vector.

Typedefs

TypeDefinition
Anchor
cvector2d
cvector2d
Cvector2DT<double>
Cvector2D
Anchor
cfvector2d
cfvector2d
Cvector2DT<float>
Cfvector2D
Anchor
cpoint2d
cpoint2d
Cvector2D
Cpoint2D (only C++)
Anchor
cfpoint2d
cfpoint2d
CfVector2D
CfPoint2D (only C++)

Properties

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

Methods

NameDescription
Cvector2DTClass constructor
x, u, rGets the 1st element (only Python)
y, g, vGets the 2nd element (only Python)
[]Gets the vector element by index [0-1] (only Python).
isZeroChecks all elements are zero.
setZeroSets all elements to zero.
assignInitializes the vector.
operator < 
operator > 
operator == 
isEqual 
abs 
negate 
+= 
add 
-= 
substract 
*= 
scale 
scaleAdd 
scaleSubstract 
midPoint 
midPoint 
product 
invert 
dot 
norm 
squareNorm 
normalize