#degree #radians #converting #angles

anglekit

A Rust library for converting angles between degrees and radians

4 releases

new 0.1.3 Nov 21, 2024
0.1.2 Nov 1, 2024
0.1.1 Oct 31, 2024
0.1.0 Oct 30, 2024

#1170 in Algorithms

Download history 314/week @ 2024-10-27 75/week @ 2024-11-03 6/week @ 2024-11-10 131/week @ 2024-11-17

526 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"

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

No runtime deps