pointFromPhysical
Parameters
- rs:*const RectScale
- *const RectScale
- p:Point.Physical
- Point.Physical
Source
Implementation
pub fn pointFromPhysical(rs: *const RectScale, p: Point.Physical) Point {
return p.diff(rs.r.topLeft()).scale(1 / rs.s, Point);
}