From d0124e10c89920be56803cc30a5e7731efe0fc36 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sun, 28 Oct 2012 16:55:42 +1000 Subject: [PATCH] Correct static zero methods --- src/vec.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) } }