Skip to main content

place_within

Function place_within 

Source
pub fn place_within(
    host_min: [f32; 3],
    host_max: [f32; 3],
    fetal_min: [f32; 3],
    fetal_max: [f32; 3],
    fill: f32,
) -> DyadPlacement
Expand description

Compute an illustrative placement of a fetal mesh within a host frame: centre it at the host centroid, scaled so its largest extent fills fill (0..1) of the host’s smallest extent (so it sits inside). Pure. Illustrative only — see the module note on scale registration.