Registry / other / lyon-geom

lyon-geom

JSON →
library1.0.19rscratesunverified

2D quadratic and cubic Bézier arcs and line segment math on top of euclid.

# Cargo.toml [dependencies] lyon_geom = "1.0.19"
INSTALL
IMPORT
SIG · LYON-GEOM
L
lyon-geom
otherrustv1.0.19
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.

CubicBezierSegment
use lyon_geom::CubicBezierSegment;

Creates a cubic Bézier segment and computes its length.

use lyon_geom::CubicBezierSegment; fn main() { let segment = CubicBezierSegment { from: (0.0, 0.0).into(), ctrl1: (0.5, 1.0).into(), ctrl2: (1.0, 0.0).into(), to: (1.0, 1.0).into(), }; println!("Length: {}", segment.length()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.19latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lyon-geom — cargo add lyon-geom · libregistry