#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

#813 in Graphics APIs

Download history 15591/week @ 2024-01-07 19024/week @ 2024-01-14 18362/week @ 2024-01-21 17737/week @ 2024-01-28 20168/week @ 2024-02-04 17175/week @ 2024-02-11 21948/week @ 2024-02-18 18527/week @ 2024-02-25 15595/week @ 2024-03-03 18945/week @ 2024-03-10 16952/week @ 2024-03-17 17548/week @ 2024-03-24 15881/week @ 2024-03-31 12824/week @ 2024-04-07 17333/week @ 2024-04-14 13370/week @ 2024-04-21

61,006 downloads per month
Used in 175 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