alacritty::renderer::text::builtin_font

Function line_equation

source
fn line_equation(slope: i32, x: i32, offset: i32) -> (f32, f32)
Expand description

f(x) = slope * x + offset equation.