#2d-graphics #2d-vector #2d #svg #graphics #vector-graphics

no-std lyon_algorithms

2D Path manipulation/transformation algorithms

23 releases (5 stable)

1.0.4 Nov 18, 2023
1.0.3 Feb 25, 2023
1.0.2 Nov 6, 2022
1.0.0 Jul 11, 2022
0.11.2 Jul 11, 2018

#803 in Graphics APIs

Download history 15270/week @ 2023-12-12 12100/week @ 2023-12-19 7308/week @ 2023-12-26 14708/week @ 2024-01-02 15816/week @ 2024-01-09 19923/week @ 2024-01-16 17508/week @ 2024-01-23 17654/week @ 2024-01-30 20018/week @ 2024-02-06 18374/week @ 2024-02-13 21056/week @ 2024-02-20 18271/week @ 2024-02-27 16520/week @ 2024-03-05 18278/week @ 2024-03-12 17368/week @ 2024-03-19 14520/week @ 2024-03-26

69,120 downloads per month
Used in 171 crates (7 directly)

MIT/Apache

350KB
9K SLoC

lyon::algorithms

A collection of various vector path manipulation algorithms.

crates.io documentation

  • Path bounding box
  • Path area
  • Path length
  • Winding numbers of a path at any position
  • Hatching a Path
  • Path hit testing
  • Path ray casting
  • walking along a path

lyon_algorithms can be used as a standalone crate or as part of lyon via the lyon::algorithms module.


lib.rs:

2d Path transformation and manipulation algorithms.

This crate is reexported in lyon.

Dependencies

~1.5MB
~35K SLoC