Skip to main content

clip_box_edge

Function clip_box_edge 

Source
pub fn clip_box_edge(
    cx: f64,
    cy: f64,
    tx: f64,
    ty: f64,
    w: f64,
    h: f64,
    pad: f64,
) -> Pt
Expand description

Axis-aligned box around (cx,cy) clipped toward (tx,ty).