001 /** 002 * Location.java - Used for passing a location to other functions and such. 003 * 004 * @author James 005 */ 006 public class Location { 007 008 /** 009 * Creates a location 010 */ 011 public Location() { 012 } 013 014 /** 015 * Creates a location with the specified coordinates 016 * 017 * @param X 018 * @param Y 019 * @param Z 020 */ 021 public Location(double X, double Y, double Z) { 022 this.x = X; 023 this.y = Y; 024 this.z = Z; 025 } 026 027 /** 028 * Creates a location with the specified coordinates and rotation 029 * 030 * @param X 031 * @param Y 032 * @param Z 033 * @param rotation 034 * @param pitch 035 */ 036 public Location(double X, double Y, double Z, float rotation, float pitch) { 037 this.x = X; 038 this.y = Y; 039 this.z = Z; 040 this.rotX = rotation; 041 this.rotY = pitch; 042 } 043 /** 044 * X location 045 */ 046 public double x; 047 /** 048 * Z location 049 */ 050 public double z; 051 /** 052 * Y location 053 */ 054 public double y; 055 /** 056 * Rotation 057 */ 058 public float rotX; 059 /** 060 * Pitch 061 */ 062 public float rotY; 063 }