Vector.scaled
- Vector.scaled(n)[source]
Returns a scaled copy of this vector.
- Parameters:
- nfloat
The scaling factor.
- Returns:
compas.geometry.Vector
A scaled copy of the vector.
Examples
>>> u = Vector(1.0, 0.0, 0.0) >>> v = u.scaled(3.0) >>> u.length 1.0 >>> v.length 3.0