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 ([float, float] or [float, float, float] | compas.geometry.Vector) – The XY(Z) components of the first vector.

  • v ([float, float] or [float, float, float] | compas.geometry.Vector) – The XY(Z) components of the second vector.

Returns

[float, float, 0.0] – Resulting vector in the XY-plane.

Examples

>>>