Function placement_quad

Source
pub fn placement_quad(p: &Placement, f: f32, z0: f32) -> Option<[[f32; 2]; 4]>
Expand description

The placed layer’s four corners (TL, TR, BR, BL) in canvas pixels, projected through the yaw/pitch tilt with focal length f and depth offset z0. None when a corner is behind the camera. Mirrors compose::draw_layer_perspective (which uses f = canvas width, z0 = 0).