Added the Zero and One traits to sigils.

It looks like these may be removed from the standard library soon.
This commit is contained in:
Jason Travis Smith
2016-01-06 05:59:38 -05:00
parent 04e744fb0f
commit 9306a73f9a
9 changed files with 133 additions and 18 deletions

View File

@ -3,11 +3,12 @@
//!
//! [1]: https://en.wikipedia.org/wiki/Quaternion
//! [2]: https://en.wikipedia.org/wiki/Dual_quaternion
use std::num::{Zero, One};
use std::ops::{Add, Sub, Mul, Div, Neg};
use super::real::Real;
use super::vector::{Vector, EuclideanVector, Vector3};
use ::zero::Zero;
use ::one::One;
use ::real::Real;
use ::vector::{Vector, EuclideanVector, Vector3};
/// A Quaternion is a combination of a scalar and a vector