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
Scale this vector by a factor n.
n (float) – The scaling factor.
Examples
>>> u = Vector(1.0, 0.0, 0.0)
>>> u.scale(3.0)
>>> u.length
3.0
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev