#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

#778 in Graphics APIs

Download history 15989/week @ 2024-03-14 18322/week @ 2024-03-21 16143/week @ 2024-03-28 14328/week @ 2024-04-04 15588/week @ 2024-04-11 15714/week @ 2024-04-18 14883/week @ 2024-04-25 16735/week @ 2024-05-02 14573/week @ 2024-05-09 15331/week @ 2024-05-16 15086/week @ 2024-05-23 16397/week @ 2024-05-30 24241/week @ 2024-06-06 36068/week @ 2024-06-13 29883/week @ 2024-06-20 25103/week @ 2024-06-27

117,582 downloads per month
Used in 179 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