34 releases (17 breaking)

0.18.0 Nov 8, 2022
0.17.1 Nov 20, 2020
0.17.0 Jul 30, 2020
0.15.0 Sep 12, 2019
0.6.0 Jun 15, 2017

#250 in Math

Download history 568/week @ 2023-12-14 878/week @ 2023-12-21 799/week @ 2023-12-28 1030/week @ 2024-01-04 1032/week @ 2024-01-11 1216/week @ 2024-01-18 1517/week @ 2024-01-25 1110/week @ 2024-02-01 1665/week @ 2024-02-08 1353/week @ 2024-02-15 1499/week @ 2024-02-22 2019/week @ 2024-02-29 2229/week @ 2024-03-07 2459/week @ 2024-03-14 2526/week @ 2024-03-21 1671/week @ 2024-03-28

9,290 downloads per month
Used in 4 crates (2 directly)

MPL-2.0 license

45KB
927 lines

plane-split

Build Status Documentation

Plane splitting with euclid, made for WebRender.


lib.rs:

Plane splitting.

Uses euclid for the math basis. Introduces new geometrical primitives and associated logic.

Automatically splits a given set of 4-point polygons into sub-polygons that don't intersect each other. This is useful for WebRender, to sort the resulting sub-polygons by depth and avoid transparency blending issues.

Dependencies

~790KB
~18K SLoC