Skip to main content

triangle_area_2d

Function triangle_area_2d 

Source
pub fn triangle_area_2d(a: Vec2, b: Vec2, c: Vec2) -> f32
Expand description

Compute the area of a triangle given three 2D vertices