Function graphics::math::triangle_face [−] [src]

pub fn triangle_face(triangle: Triangle) -> bool

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.