1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

implement mint conversions (#352)

* Implement mint conversions

Implement conversions for [mint](https://docs.rs/mint) (math interoperability standard types).

- `impl {From, Into}<mint::Point2> for Pos2`
- `impl {From, Into}<mint::Vector2> for Vec2`

* Forward `mint` feature: egui -> epaint -> emath
This commit is contained in:
Luis Wirth
2021-05-08 08:17:01 +02:00
committed by GitHub
parent 2cb94b98ef
commit 87bc26fb5a
6 changed files with 47 additions and 1 deletions

View File

@@ -37,5 +37,7 @@ persistence = ["serde", "epaint/persistence", "ron"]
single_threaded = ["epaint/single_threaded"]
multi_threaded = ["epaint/multi_threaded"]
mint = ["epaint/mint"]
[dev-dependencies]
serde_json = "1"
serde_json = "1"