angle

Crates.ioangle
lib.rsangle
version0.5.0
sourcesrc
created_at2015-04-27 18:55:46.224581
updated_at2022-03-29 13:11:12.254418
descriptionAngle wrapper to avoid ambiguous parameters + common operation over angles like wrapping, comparisons, arithmetic operations, trigonometric operations and conversions between rad and deg.
homepagehttps://github.com/arturoc/angle-rs
repositoryhttps://github.com/arturoc/angle-rs
max_upload_size
id1972
size18,643
arturo (arturoc)

documentation

https://docs.rs/angle

README

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()) 
Commit count: 31

cargo fmt