1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -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

7
Cargo.lock generated
View File

@@ -823,6 +823,7 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
name = "emath"
version = "0.11.0"
dependencies = [
"mint",
"serde",
]
@@ -1362,6 +1363,12 @@ dependencies = [
"autocfg",
]
[[package]]
name = "mint"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "519df8d6856dcd4b40519947737b408f81be051fc032590659cae5d77d664185"
[[package]]
name = "mio"
version = "0.6.23"