#degree #radians #converting #angles

anglekit

A Rust library for converting angles between degrees and radians

2 releases

new 0.1.1 Oct 31, 2024
0.1.0 Oct 30, 2024

#2 in #radians

Download history 59/week @ 2024-10-25

59 downloads per month

MIT license

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)

No runtime deps