Vector.scale

Vector.scale(n)[source]

Scale this vector by a factor n.

Parameters

n (float) – The scaling factor.

Examples

>>> u = Vector(1.0, 0.0, 0.0)
>>> u.scale(3.0)
>>> u.length
3.0