Added Vector class.

This commit is contained in:
sk89q
2011-01-02 16:23:56 +08:00
committed by Nathan Adams
parent c3fd375f2a
commit c3ad31244d
2 changed files with 356 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ public class Location implements Cloneable {
public String toString() {
return "Location{" + "world=" + world + "x=" + x + "y=" + y + "z=" + z + "pitch=" + pitch + "yaw=" + yaw + '}';
}
public Vector toVector() {
return new Vector(x, y, z);
}
@Override
protected Location clone() {