Crates.io | angle |
lib.rs | angle |
version | 0.5.0 |
source | src |
created_at | 2015-04-27 18:55:46.224581 |
updated_at | 2022-03-29 13:11:12.254418 |
description | Angle wrapper to avoid ambiguous parameters + common operation over angles like wrapping, comparisons, arithmetic operations, trigonometric operations and conversions between rad and deg. |
homepage | https://github.com/arturoc/angle-rs |
repository | https://github.com/arturoc/angle-rs |
max_upload_size | |
id | 1972 |
size | 18,643 |
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())