Crates.io | ngau |
lib.rs | ngau |
version | 0.1.0 |
source | src |
created_at | 2020-08-22 14:06:35.844068 |
updated_at | 2020-08-22 14:06:35.844068 |
description | Non-Generic Angle Units |
homepage | |
repository | https://github.com/anderejd/ngau/ |
max_upload_size | |
id | 279519 |
size | 22,003 |
Minimal, non-generic newtype wrappers for the angular operations provided by the Rust standard library.
The purpose of this library is to provide some type safety for angle units
compared to using plain f32
and f64
.
The functions provided by this libarary are intended to be used instead of
the standard library f32::sin
, f32::cos
etc. that return naked f32
values. Instead, the functions with the same names in this library return
either a Rad
or Deg
, eg. Rad::sin
return a Rad
, unlike the f32::sin
in the standard library that return a naked f32
radian value.
It was created to fill in some holes while migrating a project from cgmath
to glam
.
f64
angle types (?).#[inline]
.This repository is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.