DVUI

rectFromPhysical

Parameters

#
rs:*const RectScale
*const RectScale
r:Rect.Physical
Rect.Physical

Source

Implementation

#
pub fn rectFromPhysical(rs: *const RectScale, r: Rect.Physical) Rect {
    return r.offsetNeg(rs.r).scale(1 / rs.s, Rect);
}