Correct static zero methods
This commit is contained in:
parent
2438675384
commit
d0124e10c8
1 changed files with 3 additions and 3 deletions
|
@ -160,7 +160,7 @@ pub impl Vec2: Vector<float> {
|
|||
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<float> {
|
|||
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<float> {
|
|||
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) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue