Skip to main content

rect_pt

Function rect_pt 

Source
pub fn rect_pt(
    centre_mm: [f64; 2],
    half_mm: [f64; 2],
    page_height_mm: f64,
) -> [f64; 4]
Expand description

A 3D annotation’s rectangle in PDF points: centred on centre_mm (sheet millimetres from the top-left), half_mm either way, on a page page_height_mm tall.