Add toString to Location

Dieser Commit ist enthalten in:
Wizjany 2013-01-02 19:43:32 -05:00
Ursprung 76a77f04e7
Commit c634ad6d08

Datei anzeigen

@ -101,6 +101,11 @@ public class Location {
return position.hashCode() + 19 * world.hashCode(); return position.hashCode() + 19 * world.hashCode();
} }
@Override
public String toString() {
return "World: " + world.getName() + ", Coordinates: " + position.toString()
+ ", Yaw: " + yaw + ", Pitch: " + pitch;
}
public static Location fromLookAt(LocalWorld world, Vector start, Vector lookAt) { public static Location fromLookAt(LocalWorld world, Vector start, Vector lookAt) {
final Vector diff = lookAt.subtract(start); final Vector diff = lookAt.subtract(start);