Function steap_by_steap::convexhull::cross
source · fn cross(o: (f64, f64), a: (f64, f64), b: (f64, f64)) -> f64
Expand description
Computes the cross product of vectors OA and OB. A positive cross product indicates a counter-clockwise turn, a negative cross product indicates a clockwise turn, and zero indicates that the points are collinear.
§Arguments
o
- The origin point (x, y).a
- The first point (x, y).b
- The second point (x, y).
§Returns
The cross product of vectors OA and OB.