mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Preserve the degree symbol in the cursor documentation
This commit is contained in:
1 parent
e7a2662ee1
commit
0e9b1e8dd1
1 file changed
+1
-1
@@ -71,7 +71,7 @@ fn badged(badge: CursorBadge) -> cb::Cursor {
|
||||
PaintedCursor::badged(CursorIcon::Default, badge).into()
|
||||
}
|
||||
|
||||
/// The rotate pointer beside a box, at `octant` from the box's centre (0 up, clockwise in 45° steps).
|
||||
/// The rotate pointer beside a box, at `octant` from the box's centre (0 up, clockwise in 45° steps).
|
||||
/// Its arc bends round the corner it is at, so it opens toward the centre: opposite the octant.
|
||||
fn turn_toward(octant: u8) -> cb::Cursor {
|
||||
let angle = f32::from(octant % 8) * std::f32::consts::FRAC_PI_4;
|
||||
|
||||
Reference in new issue
Block a user