Vector.scale

Vector.scale(n)[source]

Scale this vector by a factor n.

Parameters

n (float) – The scaling factor.

Returns

None

Examples

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