Emil Ernerfeldt
|
1fbce6b2c3
|
Remove everything marked deprecated
|
2021-08-28 11:46:30 +02:00 |
|
Luis Wirth
|
87bc26fb5a
|
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
|
2021-05-08 08:17:01 +02:00 |
|
Emil Ernerfeldt
|
d7f9e2246c
|
Add a bunch on inline annotations
|
2021-04-01 23:07:15 +02:00 |
|
Emil Ernerfeldt
|
46425f1e38
|
Optimize: add #[inline(always)] to various low-level things
saves up to 20% (text tesselation), and at least 5% overall
|
2021-03-28 23:16:19 +02:00 |
|
Emil Ernerfeldt
|
f5c372910c
|
Replace emath::clamp with f32::clamp (new in rustc 1.50)
|
2021-03-21 17:47:03 +01:00 |
|
Emil Ernerfeldt
|
5621a46b4b
|
emath: add any_nan to Vec2, Pos2 and Rect
|
2021-03-20 16:18:04 +01:00 |
|
Emil Ernerfeldt
|
a19140ec67
|
A simple 2D plot library
|
2021-02-17 22:54:10 +01:00 |
|
Emil Ernerfeldt
|
2d9d06dbff
|
[emath] Use const values for Vec2::ZERO, Rect::EVERYTHING etc
|
2021-02-05 10:11:39 +01:00 |
|
Emil Ernerfeldt
|
38ca36724a
|
[emath] Pos2: add conversions to/from (f32, f32) and [f32; 2]
Useful for places where we have `impl Into<Pos2>` as an argument
|
2021-01-25 21:11:19 +01:00 |
|
Emil Ernerfeldt
|
d11b02d45e
|
[emath] Add Pos2::zero() and Rect::clamp(point)
|
2021-01-17 00:21:31 +01:00 |
|
Emil Ernerfeldt
|
a0b0f36d29
|
Move egui/math into new crate emath
|
2021-01-10 11:37:47 +01:00 |
|