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

#58 in Math

Download history 1287/week @ 2022-10-13 1388/week @ 2022-10-20 1589/week @ 2022-10-27 1290/week @ 2022-11-03 1141/week @ 2022-11-10 1158/week @ 2022-11-17 951/week @ 2022-11-24 1083/week @ 2022-12-01 1208/week @ 2022-12-08 1230/week @ 2022-12-15 1145/week @ 2022-12-22 1079/week @ 2022-12-29 1030/week @ 2023-01-05 1227/week @ 2023-01-12 1712/week @ 2023-01-19 1338/week @ 2023-01-26

5,564 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

~780KB
~18K SLoC