Remove glob import

This commit is contained in:
Brendan Zabarauskas 2013-09-18 11:37:06 +10:00
parent 8519e0fb8e
commit 46636ca8ef

View file

@ -20,7 +20,8 @@ use std::num::{Zero, zero, One, one, cast, sqrt};
use angle::{Rad, sin, cos}; use angle::{Rad, sin, cos};
use array::{Array, build}; use array::{Array, build};
use quaternion::{Quat, ToQuat}; use quaternion::{Quat, ToQuat};
use vector::*; use vector::{Vector, EuclideanVector};
use vector::{Vec2, Vec3, Vec4};
/// A 2 x 2, column major matrix /// A 2 x 2, column major matrix
#[deriving(Clone, Eq, Zero)] #[deriving(Clone, Eq, Zero)]
@ -562,8 +563,7 @@ impl<S: Float> ToMat4<S> for Mat3<S> {
impl<S:Float> ToQuat<S> for Mat3<S> { impl<S:Float> ToQuat<S> for Mat3<S> {
/// Convert the matrix to a quaternion /// Convert the matrix to a quaternion
fn to_quat(&self) -> Quat<S> { fn to_quat(&self) -> Quat<S> {
// Implemented using a mix of ideas from jMonkeyEngine and Ken Shoemake's // http://www.cs.ucr.edu/~vbz/resources/Quatut.pdf
// paper on Quaternions: http://www.cs.ucr.edu/~vbz/resources/Quatut.pdf
let trace = self.trace(); let trace = self.trace();
let half: S = cast(0.5); let half: S = cast(0.5);
cond! ( cond! (