mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -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());
|
.unwrap_or_else(|| ui.visuals().text_color());
|
||||||
let angle: f32 = match AXIS {
|
let angle: f32 = match AXIS {
|
||||||
X_AXIS => 0.0,
|
X_AXIS => 0.0,
|
||||||
Y_AXIS => -std::f32::consts::PI * 0.5,
|
Y_AXIS => -std::f32::consts::TAU * 0.25,
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
// select text_pos and angle depending on placement and orientation of widget
|
// select text_pos and angle depending on placement and orientation of widget
|
||||||
|
|||||||
Reference in New Issue
Block a user