Function piston_window::math::triangle_face[][src]

pub fn triangle_face<T>(triangle: [[T; 2]; 3]) -> bool where
    T: Float

Returns true if triangle is clockwise.

This is done by computing which side the third vertex is relative to the line starting from the first vertex to second vertex.

The triangle is considered clockwise if the third vertex is on the line between the two first vertices.