Emil Ernerfeldt
faf31365d2
Add `emath::Rangef` and helpers for splitting a `Rect` ( #2978 )
...
* emath: add Rangef helper
* emath: Add Rect splitting helper
* Add helper for interpolating Pos2
2023-05-08 12:20:26 +02:00
Emil Ernerfeldt
4d357b0f02
clippy fixes from 1.69.0
2023-04-21 11:33:18 +02:00
YgorSouza
8ec9233e28
Add #![forbid(unsafe_code)] where unsafe isn't needed ( #2773 )
...
To be consistent with the use of the safety badge in the README.
2023-03-29 14:39:51 +02:00
Emil Ernerfeldt
530e9f667c
format: add some blank lines where it was needed
2023-02-10 18:03:46 +01:00
Emil Ernerfeldt
34f587d1e1
Add emath::inverse_lerp
2022-12-22 12:33:06 +01:00
Emil Ernerfeldt
367087f84f
Annotate at_least and at_most with #[must_use]
2022-12-15 15:38:31 +01:00
Andreas Reich
5effc68ba4
Split out ecolor crate ( #2399 )
...
* split out ecolor crate
* split up ecolor crate in lots of modules
* add changelog notes
* add readme to ecolor
* put clippy::manual_range_contains on cranky allow list
* fix hex color issues
* doc fixes
* more hex_color fixes
* Document features
* Rename hex_color module to avoid warning
* Sort the feature names
* fix link in CHANGELOG.md
* better wording
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-12-06 20:42:25 +01:00
Emil Ernerfeldt
5093b67e9b
Enable and fix some more clippy lints
2022-12-05 09:29:59 +01:00
Emil Ernerfeldt
1c8cf9e3d5
Move egui::util::History to emath::History ( #2329 )
...
* Move egui::util::History to emath::History
It is a nice thing to use outside of egui,
and it is more math-related than gui-related.
* Fix doctest
2022-11-21 14:14:33 +01:00
Emil Ernerfeldt
041f2e64ba
Move all crates into a `crates` directory ( #1940 )
2022-08-20 10:41:49 +02:00