#degree #radians #converting #angles

anglekit

A Rust library for converting angles between degrees and radians

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

Download history 273/week @ 2024-10-26 116/week @ 2024-11-02 6/week @ 2024-11-09 123/week @ 2024-11-16 19/week @ 2024-11-23

341 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