pub fn local_pose_matrix(
offset_mm: [f64; 3],
rotate_deg: [f64; 3],
scale_xyz: [f64; 3],
board_thickness_mm: f64,
is_bottom: bool,
) -> Matrix4Expand description
Compute a 3D model’s footprint-local 4x4 matrix on a board centred on z = 0.
Order: `[Rx(pi) if bottom] * T(offset_x, offset_y, offset_z + 0.05 + t/2)
- Rz(-rz) * Ry(-ry) * Rx(-rx) * S(scale)`.