pub fn is_ccw_turn(p1: [f64; 2], p2: [f64; 2], p3: [f64; 2]) -> boolExpand description
Check if three points make a counterclockwise turn
§Arguments
p1- First point [x, y]p2- Second point [x, y]p3- Third point [x, y]
§Returns
- true if the turn is counterclockwise, false otherwise
§Examples
use scirs2_spatial::convex_hull::algorithms::graham_scan::is_ccw_turn;
let p1 = [0.0, 0.0];
let p2 = [1.0, 0.0];
let p3 = [0.0, 1.0];
assert!(is_ccw_turn(p1, p2, p3));