Use ==
instead of default_eq
This commit is contained in:
parent
49d055a3dc
commit
f44d2aa540
1 changed files with 9 additions and 3 deletions
12
src/mat.rs
12
src/mat.rs
|
@ -327,7 +327,8 @@ pub impl<T:Copy NumCast> Mat2<T>: NumericMatrix2x2<T, Vec2<T>> {
|
||||||
pub impl<T:Copy DefaultEq> Mat2<T>: Eq {
|
pub impl<T:Copy DefaultEq> Mat2<T>: Eq {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pure fn eq(&self, other: &Mat2<T>) -> bool {
|
pure fn eq(&self, other: &Mat2<T>) -> bool {
|
||||||
self.default_eq(other)
|
self[0] == other[0] &&
|
||||||
|
self[1] == other[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
@ -621,7 +622,9 @@ pub impl<T:Copy Num NumCast Ord DefaultEq> Mat3<T>: ToQuat<T> {
|
||||||
pub impl<T:Copy DefaultEq> Mat3<T>: Eq {
|
pub impl<T:Copy DefaultEq> Mat3<T>: Eq {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pure fn eq(&self, other: &Mat3<T>) -> bool {
|
pure fn eq(&self, other: &Mat3<T>) -> bool {
|
||||||
self.default_eq(other)
|
self[0] == other[0] &&
|
||||||
|
self[1] == other[1] &&
|
||||||
|
self[2] == other[2]
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
@ -965,7 +968,10 @@ pub impl<T> Mat4<T>: NumericMatrix4x4<T, Vec4<T>> {
|
||||||
pub impl<T:Copy DefaultEq> Mat4<T>: Eq {
|
pub impl<T:Copy DefaultEq> Mat4<T>: Eq {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pure fn eq(&self, other: &Mat4<T>) -> bool {
|
pure fn eq(&self, other: &Mat4<T>) -> bool {
|
||||||
self.default_eq(other)
|
self[0] == other[0] &&
|
||||||
|
self[1] == other[1] &&
|
||||||
|
self[2] == other[2] &&
|
||||||
|
self[3] == other[3]
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
|
Loading…
Reference in a new issue