Added Radians and Degrees to the trig module.

These types allow the correct tracking of the type of angle measurement
being used.
This commit is contained in:
2016-12-01 01:15:24 -05:00
parent b51a93fc01
commit 40f5c0f462
6 changed files with 982 additions and 221 deletions

View File

@ -6,6 +6,9 @@
#![feature(associated_consts)]
#[macro_use]
mod macros;
mod zero;
mod one;
mod bounded;
@ -15,7 +18,7 @@ mod integer;
mod real;
mod constants;
pub mod trig;
mod trig;
pub mod vector;
pub mod matrix;
pub mod quaternion;
@ -28,3 +31,4 @@ pub use self::whole::Whole;
pub use self::integer::Integer;
pub use self::real::Real;
pub use self::constants::Constants;
pub use self::trig::{Degree, Radian};