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

Vector3D

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

 

 

Valid XHTML 1.0 Transitional