1. Add function¶
Ad hoc polymorphism ‘add’ function
Parameters |
Type |
description |
vec |
Vector |
The second operand as vector |
1.1. Returns¶
- Vector
The computed added vector
1.2. Examples¶
>>> v=Vector(0,0,0,2,2,2)
>>> w=Vector(1,1,1,4,5,6)
>>> print(v+w)
( 5.0 , 6.0 , 7.0 )
printed