Skip to main content

to_normalized

Function to_normalized 

Source
pub fn to_normalized(
    x: i32,
    y: i32,
    width: i32,
    height: i32,
) -> Result<(i32, i32)>
Expand description

Convert absolute pixels to [0-1000] normalized.