Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

local_hlr_mm_to_board_nm

Function local_hlr_mm_to_board_nm 

Source
pub fn local_hlr_mm_to_board_nm(
    lx_mm: f64,
    ly_mm: f64,
    origin_nm: CoordNm,
    comp_rot_deg: f64,
    is_bottom: bool,
) -> CoordNm
Expand description

Map a Geometer local HLR point in millimetres (+Y up camera) into +Y-up board nanometres.

For top views (dir = +Z, up = +Y), camera right is +X. For bottom views (dir = -Z, up = +Y), camera right is -X, so lx_mm is negated before applying the footprint’s board rotation and origin translation.