pub struct Scanline { /* private fields */ }
Expand description
Scanline object
Implementations§
source§impl Scanline
impl Scanline
pub fn overlap(
a: &Scanline,
b: &Scanline,
x_from: f64,
x_to: f64,
fill_rule: FillRule
) -> f64
sourcepub fn count_intersections(&self, x: f64) -> i32
pub fn count_intersections(&self, x: f64) -> i32
Returns the number of intersections left of x
sourcepub fn sum_intersections(&self, x: f64) -> i32
pub fn sum_intersections(&self, x: f64) -> i32
Returns the total sign of intersections left of x