Vec3: Simplify operator== code
This commit is contained in:
1 parent
bb27f80a65
commit
e787501528
1 file changed
+1
-4
@@ -150,10 +150,7 @@ public:
|
||||
|
||||
bool operator==(const Vec3 &other) const
|
||||
{
|
||||
if (x == other.x && y == other.y && z == other.z)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return x == other.x && y == other.y && z == other.z;
|
||||
}
|
||||
|
||||
void SetZero()
|
||||
|
||||
Reference in new issue
Block a user