Crate spacecurve

Crate spacecurve 

Source
Expand description

Core library for working with space‑filling curves.

Exposes curve implementations and the SpaceCurve trait used by the CLI and GUI crates in this workspace.

§Supported Curves

  • Hilbert
  • Z-order (Morton)
  • Gray Code
  • H-curve
  • Scan (Boustrophedon)
  • Onion / Hairy Onion (experimental)

Re-exports§

pub use curves::gray;
pub use curves::hairyonion;
pub use curves::hcurve;
pub use curves::hilbert;
pub use curves::onion;
pub use curves::scan;
pub use curves::zorder;
pub use registry::CURVE_NAMES;
pub use registry::curve_names;

Modules§

curves
Implementations of specific space‑filling curves. Modules implementing individual curve families.
error
Error types used across the crate. Error types for the spacecurve crate.
point
N‑dimensional points and helpers. Lightweight N‑dimensional point type used by curve implementations.
registry
Central registry of curve metadata and constructors.
spacecurve
The SpaceCurve trait and related utilities. The SpaceCurve trait describing a family of curves.
spec
Grid specification helpers shared across curves. Grid specification helpers used by curve constructors and registry validation.

Functions§

pattern_from_name
Construct a curve by name with the requested dimensionality and size.