public class Location extends Object
| Constructor and Description |
|---|
Location(LocalWorld world,
Vector position) |
Location(LocalWorld world,
Vector position,
float yaw,
float pitch) |
| Modifier and Type | Method and Description |
|---|---|
Location |
add(double x,
double y,
double z) |
Location |
add(Vector other) |
boolean |
equals(Object obj) |
static Location |
fromEye(LocalWorld world,
Vector start,
Vector eye) |
static Location |
fromLookAt(LocalWorld world,
Vector start,
Vector lookAt) |
Vector |
getDirection() |
float |
getPitch() |
Vector |
getPosition() |
LocalWorld |
getWorld() |
float |
getYaw() |
int |
hashCode() |
Location |
setAngles(float yaw,
float pitch) |
Location |
setPosition(Vector position) |
String |
toString() |
public Location(LocalWorld world, Vector position)
public Location(LocalWorld world, Vector position, float yaw, float pitch)
public LocalWorld getWorld()
public Vector getPosition()
public float getYaw()
public float getPitch()
public Location setAngles(float yaw, float pitch)
public Location add(double x, double y, double z)
public Vector getDirection()
public static Location fromLookAt(LocalWorld world, Vector start, Vector lookAt)
public static Location fromEye(LocalWorld world, Vector start, Vector eye)
Copyright © 2010-2014. All Rights Reserved.