Skip to main content

Module dda_line

Module dda_line 

Source
Expand description

DDA (Digital Differential Analyzer) line interpolation algorithms.

Port of agg_dda_line.h — efficient line interpolation using integer arithmetic for rasterization.

Structs§

Dda2LineInterpolator
Integer DDA line interpolator using Bresenham-style remainder tracking.
DdaLineInterpolator
Fixed-point DDA line interpolator with configurable precision.
LineBresenhamInterpolator
Bresenham line interpolator with subpixel precision.

Constants§

SUBPIXEL_MASK
SUBPIXEL_SCALE
SUBPIXEL_SHIFT
Subpixel constants for Bresenham interpolator.

Functions§

line_lr
Convert from high-resolution (subpixel) to low-resolution (pixel).