2 releases
new 0.1.1 | Oct 31, 2024 |
---|---|
0.1.0 | Oct 30, 2024 |
#2 in #radians
59 downloads per month
3KB
Anglekit
Anglekit is a Rust library for converting angles between degrees and radians.
Usage
Add anglekit to your Cargo.toml
:
[dependencies]
anglekit = "0.1.0"
Examplesuse anglekit::{degrees_to_radians, radians_to_degrees};
fn main() {
let degrees = 90.0;
let radians = degrees_to_radians(degrees);
println!("{} degrees is {} radians", degrees, radians);
let radians = std::f64::consts::PI;
let degrees = radians_to_degrees(radians);
println!("{} radians is {} degrees", radians, degrees);
}
License
This project is licensed under the MIT License.
Author
Ben Santora (bensatlantik@gmail.com)