1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -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

@@ -20,6 +20,7 @@ include = [
[lib]
[dependencies]
mint = { version = "0.5.6", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
[features]