Vector.unitize
- Vector.unitize()[source]
Scale this vector to unit length.
Examples
>>> u = Vector(1.0, 2.0, 3.0) >>> u.unitize() >>> u.length 1.0
Scale this vector to unit length.
Examples
>>> u = Vector(1.0, 2.0, 3.0)
>>> u.unitize()
>>> u.length
1.0
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev