diff --git a/src/vec.rs b/src/vec.rs index 3345287..0fbd996 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -160,7 +160,7 @@ pub impl Vec2: Vector { max(&self[1], &other[1])) } - #[inline] static pure fn zero() -> Vec2 { Vec2(1f, 1f) } + #[inline] static pure fn zero() -> Vec2 { Vec2(0f, 0f) } #[inline] static pure fn identity() -> Vec2 { Vec2(1f, 1f) } } @@ -349,7 +349,7 @@ pub impl Vec3: Vector { max(&self[2], &other[2])) } - #[inline] static pure fn zero() -> Vec3 { Vec3(1f, 1f, 1f) } + #[inline] static pure fn zero() -> Vec3 { Vec3(0f, 0f, 0f) } #[inline] static pure fn identity() -> Vec3 { Vec3(1f, 1f, 1f) } } @@ -540,7 +540,7 @@ pub impl Vec4: Vector { max(&self[3], &other[3])) } - #[inline] static pure fn zero() -> Vec4 { Vec4(1f, 1f, 1f, 1f) } + #[inline] static pure fn zero() -> Vec4 { Vec4(0f, 0f, 0f, 0f) } #[inline] static pure fn identity() -> Vec4 { Vec4(1f, 1f, 1f, 1f) } }