parry2d::utils::point_in_triangle

Function corner_direction

Source
pub fn corner_direction(
    p1: &Point<f32>,
    p2: &Point<f32>,
    p3: &Point<f32>,
) -> Orientation
Expand description

Returns the direction of a line through p1, p2 and p3.

Counter-clockwise example: o p1 . o p3 . . . . o p2

Clockwise example: o p2 . . . . . o p3 o p1