Use TAU instead of the legacy PI

This commit is contained in:
Emil Ernerfeldt
2023-08-14 11:28:26 +02:00
committed by GitHub
parent 135a457ecd
commit 9eff191bc0
+1 -1
View File
@@ -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