v2.2.0: early code for gnoll caves quest levelgen

This commit is contained in:
Evan Debenham
2023-10-04 22:47:26 -04:00
parent e0f7f2d620
commit d51e397c26
9 changed files with 219 additions and 9 deletions

View File

@@ -80,6 +80,12 @@ public class Point {
public float length() {
return (float)Math.sqrt( x * x + y * y );
}
public static float distance( Point a, Point b ) {
float dx = a.x - b.x;
float dy = a.y - b.y;
return (float)Math.sqrt( dx * dx + dy * dy );
}
@Override
public boolean equals( Object obj ) {