mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
pybricks.tools: Document cross product.
This commit is contained in:
@@ -207,6 +207,21 @@ def vector(*args):
|
||||
"""
|
||||
|
||||
|
||||
def cross(a: Matrix, b: Matrix) -> Matrix:
|
||||
"""
|
||||
cross(a, b) -> Matrix
|
||||
|
||||
Gets the cross product ``a`` × ``b`` of two vectors.
|
||||
|
||||
Arguments:
|
||||
a (Matrix): A three-dimensional vector.
|
||||
b (Matrix): A three-dimensional vector.
|
||||
|
||||
Returns:
|
||||
The cross product, also a three-dimensional vector.
|
||||
"""
|
||||
|
||||
|
||||
# HACK: hide from jedi
|
||||
if TYPE_CHECKING:
|
||||
del Number
|
||||
|
||||
Reference in New Issue
Block a user