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:
@@ -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![];
|
||||
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user