Skip to main content

split_rect_bsp

Function split_rect_bsp 

Source
pub fn split_rect_bsp(
    area: LayoutRect,
    orientation: Orientation,
    ratio: Ratio,
) -> (LayoutRect, LayoutRect)
Expand description

Split a rectangle into two along the given orientation using a ratio.