subtract_vectors_xy

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

Subtract one vector from another, assuming they lie in the XY plane.

Parameters
  • u (list) – The XY(Z) components of the first vector.

  • v (list) – The XY(Z) components of the second vector.

Returns

list – Resulting vector in the XY-plane (Z = 0.0)

Examples

>>>