From b710f919d59f02f65d886b0b9e0b05ce6abadd55 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Wed, 31 Jul 2013 10:29:17 +0200 Subject: [PATCH] Added static ZERO, UNIT_X, UNIT_Y, UNIT_Z, and ONE fields to Vector. --- src/main/java/com/sk89q/worldedit/Vector.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/Vector.java b/src/main/java/com/sk89q/worldedit/Vector.java index b1fb7c5bc..6d0d917d6 100644 --- a/src/main/java/com/sk89q/worldedit/Vector.java +++ b/src/main/java/com/sk89q/worldedit/Vector.java @@ -24,6 +24,12 @@ package com.sk89q.worldedit; * @author sk89q */ public class Vector implements Comparable { + 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; /**