pub fn is_more_counterclockwise(
reference: [f64; 2],
current_best: [f64; 2],
candidate: [f64; 2],
) -> boolExpand description
Check if a point is more counterclockwise than another
§Arguments
reference- Reference point [x, y]current_best- Current best point [x, y]candidate- Candidate point [x, y]
§Returns
- true if candidate is more counterclockwise than current_best
§Examples
use scirs2_spatial::convex_hull::algorithms::jarvis_march::is_more_counterclockwise;
let reference = [0.0, 0.0];
let current_best = [1.0, 0.0];
let candidate = [0.0, 1.0];
assert!(is_more_counterclockwise(reference, current_best, candidate));