[][src]Function nannou::ui::prelude::widget::primitive::shape::rectangle::triangles

pub fn triangles(rect: Rect) -> (Triangle<[f64; 2]>, Triangle<[f64; 2]>)

The two triangles that describe the given Rect.