WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

Vector2D

Constructs a new vector object.
Syntax
Vector2D()
Vector2D(x,y)
Vector2D(other)
 
Parameters
TypeNameDescription
'x'
The x value of the vector.
'y'
The y value of the vector.
'other'
Specifies another Vector2D.
Returns
None
Note
If no parameters are specified then the vector has the x and y values set to 0.
Example
Vector2D vec0();
Vector2D vec1(1,2);
Vector2D vec2(vec1);
'vec0' will be 0,0.
'vec1' will be 1,2.
'vec2' will copy the current values from 'vec1' and so will also be 1,2.

 

 

Valid XHTML 1.0 Transitional