pub fn bilinear_box_deform(
dx: &[f32; 4],
dy: &[f32; 4],
fx: f32,
fy: f32,
) -> (f32, f32)Expand description
Spreads the four box-corner vertex-deform offsets across an arbitrary point inside the part’s bounding box by bilinear interpolation.
dx/dy are the per-corner offsets in [LT, RT, LB, RB] order (the same
layout produced by compute_local_vertices’s 4-corner deform). (fx, fy)
are the point’s box coordinates with fx = 0 at the left edge / fy = 0
at the top edge, matching shape_vertex_box_coords and the renderer’s
per-corner PartColor weighting. Returns the interpolated (dx, dy) offset.