discretize.utils.cross2d#
- discretize.utils.cross2d(x, y)[source]#
Compute the cross product of two vectors.
This function will calculate the cross product as if the third component of each of these vectors was zero.
The returned direction is perpendicular to both inputs, making it be solely in the third dimension.
- Parameters:
- x, yarray_like
The vectors for the cross product.
- Returns:
- x_cross_y
numpy.ndarray
The cross product of x and y.
- x_cross_y