1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

Use explicit emath to math alias

egui exports `emath` under its original name AND under the alias `math`
(for historical reasons).
This commit is contained in:
Emil Ernerfeldt
2021-02-14 10:44:46 +01:00
parent c376d0bb7e
commit 6d255cd179
18 changed files with 28 additions and 27 deletions

View File

@@ -35,7 +35,7 @@ impl super::View for DancingStrings {
let (_id, rect) = ui.allocate_space(desired_size);
let to_screen =
math::RectTransform::from_to(Rect::from_x_y_ranges(0.0..=1.0, -1.0..=1.0), rect);
emath::RectTransform::from_to(Rect::from_x_y_ranges(0.0..=1.0, -1.0..=1.0), rect);
let mut shapes = vec![];

View File

@@ -151,8 +151,8 @@ impl FractalClock {
];
let hand_rotors = [
hands[0].length * math::Rot2::from_angle(hand_rotations[0]),
hands[1].length * math::Rot2::from_angle(hand_rotations[1]),
hands[0].length * emath::Rot2::from_angle(hand_rotations[0]),
hands[1].length * emath::Rot2::from_angle(hand_rotations[1]),
];
#[derive(Clone, Copy)]