diff --git a/src/common/ncast.rs b/src/common/ncast.rs index 6bf838a..7fc9b33 100644 --- a/src/common/ncast.rs +++ b/src/common/ncast.rs @@ -1,8 +1,8 @@ /** - * This trait allows you to easily cast between the built in numeric types, - * going above and beyond the static 'to_int' function found in the Num trait. - * I've found that it is especially handy in generic functions when you need to - * mix floating point and integer values. + * This trait allows for the easy casting between each of thethe built in + * numeric types, going above and beyond the static 'to_int' function found in + * the Num trait. I've found that it is especially handy in generic functions + * when you need to mix floating point and integer values. */ trait NumCast { static pure fn from(n: T) -> self; diff --git a/src/quaternion.rs b/src/quaternion.rs index 9b60e0c..981d284 100644 --- a/src/quaternion.rs +++ b/src/quaternion.rs @@ -66,13 +66,13 @@ pub mod Quat { } #[inline(always)] - pub pure fn zero () -> Quat { + pub pure fn zero() -> Quat { let _0 = cast(0); Quat::new(_0, _0, _0, _0) } #[inline(always)] - pub pure fn identity () -> Quat { + pub pure fn identity() -> Quat { let _0 = cast(0); Quat::new(cast(1), _0, _0, _0) } diff --git a/src/vector.rs b/src/vector.rs index 3dda5cd..e1f3289 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -56,13 +56,13 @@ pub trait GeometricVector { } pub trait Vector2 { - // pub static pure fn new(x: T, y: T) -> self; - // pub static pure fn from_value(value: T) -> self; + // static pure fn new(x: T, y: T) -> self; + // static pure fn from_value(value: T) -> self; } pub trait Vector3 { - // pub static pure fn new(x: T, y: T, z: T) -> self; - // pub static pure fn from_value(value: T) -> self; + // static pure fn new(x: T, y: T, z: T) -> self; + // static pure fn from_value(value: T) -> self; fn cross(other: &self) -> self; }