reorientable gearbox because input and output cannot be on the same location

This commit is contained in:
minjaesong
2024-10-06 14:06:04 +09:00
parent 9a33375286
commit 02db6b8fed
11 changed files with 118 additions and 82 deletions

View File

@@ -119,6 +119,10 @@ class Point2i() {
}
override fun hashCode(): Int = XXHash32.hashGeoCoord(x, y)
override fun equals(other: Any?) = if (other is Point2i)
this.x == other.x && this.y == other.y
else
false
override fun toString() = "Point2i($x, $y)"