mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Use TAU instead of the legacy PI
This commit is contained in:
@@ -172,7 +172,7 @@ impl<const AXIS: usize> Widget for AxisWidget<AXIS> {
|
||||
.unwrap_or_else(|| ui.visuals().text_color());
|
||||
let angle: f32 = match AXIS {
|
||||
X_AXIS => 0.0,
|
||||
Y_AXIS => -std::f32::consts::PI * 0.5,
|
||||
Y_AXIS => -std::f32::consts::TAU * 0.25,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
// select text_pos and angle depending on placement and orientation of widget
|
||||
|
||||
Reference in New Issue
Block a user