pub fn layer_triangle(
triangle: &TriangleView<'_>,
attachment: f64,
limit: f64,
) -> Result<Triangle, ValidationError>Expand description
Keep only the layer portion min(max(x - attachment, 0), limit).
pub fn layer_triangle(
triangle: &TriangleView<'_>,
attachment: f64,
limit: f64,
) -> Result<Triangle, ValidationError>Keep only the layer portion min(max(x - attachment, 0), limit).