forked from bit/DotRecastNetSim
change Vector3f's operator ==, !=
This commit is contained in:
parent
2300779b72
commit
11558e4b81
|
@ -91,14 +91,14 @@ namespace DotRecast.Core
|
||||||
|
|
||||||
public static bool operator ==(Vector3f left, Vector3f right)
|
public static bool operator ==(Vector3f left, Vector3f right)
|
||||||
{
|
{
|
||||||
return (left.x == right.x)
|
return left.x.Equals(right.x)
|
||||||
&& (left.y == right.y)
|
&& left.y.Equals(right.y)
|
||||||
&& (left.z == right.z);
|
&& left.z.Equals(right.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool operator !=(Vector3f left, Vector3f right)
|
public static bool operator !=(Vector3f left, Vector3f right)
|
||||||
{
|
{
|
||||||
return !(left == right);
|
return !left.Equals(right);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue