scale_vectors

compas.geometry.scale_vectors(vectors, factor)[source]

Scale multiple vectors by a given factor.

Parameters
  • vectors (sequence[[float, float, float] | compas.geometry.Vector]) – A list of vectors.

  • factor (float) – The scaling factor.

Returns

list[[float, float, float]] – The scaled vectors.

Examples

>>>