cross_vectors_xy
- compas.geometry.cross_vectors_xy(u, v)[source]
Compute the cross product of two vectors, assuming they lie in the XY-plane.
- Parameters:
- u[float, float] or [float, float, float] |
compas.geometry.Vector
XY(Z) coordinates of the first vector.
- v[float, float] or [float, float, float] |
compas.geometry.Vector
XY(Z) coordinates of the second vector.
- u[float, float] or [float, float, float] |
- Returns:
- [float, float, float]
The cross product of the two vectors. This vector will be perpendicular to the XY plane.
Examples
>>> cross_vectors_xy([1.0, 0.0], [0.0, 1.0]) [0.0, 0.0, 1.0]
>>> cross_vectors_xy([1.0, 0.0, 0.0], [0.0, 1.0, 0.0]) [0.0, 0.0, 1.0]
>>> cross_vectors_xy([1.0, 0.0, 1.0], [0.0, 1.0, 1.0]) [0.0, 0.0, 1.0]