3. Mul function¶
Ad hoc polymorphism ‘mul’ function
Parameters |
Type |
description |
vec |
Vector |
The second operand as vector |
3.1. Returns¶
- Vector
The computed multiplied vector
3.2. Examples¶
>>> v=Vector(0,0,0,2,2,2)
>>> print(v*10)
( 20.0 , 20.0 , 20.0 )
printed