Cvector2DT

C++Python
Cvector2DT<Cprecision>Cvector2D, CfVector2D

Template class that describes a 2D vector.

Typedefs

TypeDefinition
Cvector2DT<double>Cvector2D
Cvector2DT<float>Cfvector2D
Cvector2DCpoint2D (only C++)
CfVector2DCfPoint2D (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 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Â