add_vectors

compas.geometry.add_vectors(u, v)[source]

Add two vectors.

Parameters
  • u ([float, float, float] | Vector) – XYZ components of the first vector.

  • v ([float, float, float] | Vector) – XYZ components of the second vector.

Returns

[float, float, float] – The resulting vector.