Registry / other / bresenham

bresenham

JSON →
library0.1.1rscratesunverified

A fast, iterator-based integer-only implementation of Bresenham's line algorithm.

# Cargo.toml [dependencies] bresenham = "0.1.1"
INSTALL
IMPORT
SIG · BRESENHAM
B
bresenham
otherrustv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bresenham
use bresenham::Bresenham;

Iterates over points on a line from (0,0) to (5,3).

use bresenham::Bresenham; fn main() { let line = Bresenham::new((0, 0), (5, 3)); for point in line { println!("{:?}", point); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Meta
2
OpenAI (training)
1
Resources
bresenham — cargo add bresenham · libregistry