Added static ZERO, UNIT_X, UNIT_Y, UNIT_Z, and ONE fields to Vector.

This commit is contained in:
TomyLobo 2013-07-31 10:29:17 +02:00
parent e787013bad
commit b710f919d5

View File

@ -24,6 +24,12 @@ package com.sk89q.worldedit;
* @author sk89q
*/
public class Vector implements Comparable<Vector> {
public static Vector ZERO = new Vector(0, 0, 0);
public static Vector UNIT_X = new Vector(1, 0, 0);
public static Vector UNIT_Y = new Vector(0, 1, 0);
public static Vector UNIT_Z = new Vector(0, 0, 1);
public static Vector ONE = new Vector(1, 1, 1);
protected final double x, y, z;
/**