4 releases
0.1.3 | Nov 21, 2024 |
---|---|
0.1.2 | Nov 1, 2024 |
0.1.1 | Oct 31, 2024 |
0.1.0 | Oct 30, 2024 |
#1177 in Algorithms
341 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"
Examples
use 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
bensatlantik