#compare #rad #trigonometric #convert #deg #operations-and-conversions

angle

Angle wrapper to avoid ambiguous parameters + common operation over angles like wrapping, comparisons, arithmetic operations, trigonometric operations and conversions between rad and deg

15 releases

Uses old Rust 2015

0.5.0 Mar 29, 2022
0.4.0 Aug 16, 2019
0.3.5 Oct 6, 2017
0.1.55555 May 31, 2016
0.1.1 Jul 12, 2015

#856 in Math

Download history 1288/week @ 2025-11-14 1285/week @ 2025-11-21 2227/week @ 2025-11-28 1938/week @ 2025-12-05 2056/week @ 2025-12-12 1424/week @ 2025-12-19 1013/week @ 2025-12-26 1471/week @ 2026-01-02 2624/week @ 2026-01-09 1469/week @ 2026-01-16 1192/week @ 2026-01-23 2048/week @ 2026-01-30 2651/week @ 2026-02-06 2308/week @ 2026-02-13 1867/week @ 2026-02-20 1288/week @ 2026-02-27

8,652 downloads per month
Used in 28 crates (7 directly)

MIT license

19KB
612 lines

angle-rs

Build Status

Rust angle wrapper to avoid ambiguous parameters + common operation over angles like wrapping, comparisons, arithmetic operations, trigonometric operations and conversions between rad and deg.

assert!(Deg(20)>Deg(370))
assert!(Deg(20).min(Deg(370)) == Deg(370))
assert_eq!(Deg(180.0f32).sin(),Rad::pi().sin()) 

Dependencies

~0.4–1.1MB
~25K SLoC