performance trip

This commit is contained in:
2015-07-10 00:09:08 +06:00
parent d26c7e4a12
commit 74503911a5
12 changed files with 51110 additions and 41 deletions

View File

@@ -329,16 +329,11 @@ namespace IsoTools {
// ---------------------------------------------------------------------
public static bool Vec2Approximately(Vector2 a, Vector2 b) {
return
Mathf.Approximately(a.x, b.x) &&
Mathf.Approximately(a.y, b.y);
return a == b;
}
public static bool Vec3Approximately(Vector3 a, Vector3 b) {
return
Mathf.Approximately(a.x, b.x) &&
Mathf.Approximately(a.y, b.y) &&
Mathf.Approximately(a.z, b.z);
return a == b;
}
// ---------------------------------------------------------------------