public class BlockVector extends Vector
Vector that that compares with other instances
using integer components.| Modifier and Type | Field and Description |
|---|---|
static BlockVector |
ONE |
static BlockVector |
UNIT_X |
static BlockVector |
UNIT_Y |
static BlockVector |
UNIT_Z |
static BlockVector |
ZERO |
| Constructor and Description |
|---|
BlockVector(double x,
double y,
double z)
Construct a new instance.
|
BlockVector(float x,
float y,
float z)
Construct a new instance.
|
BlockVector(int x,
int y,
int z)
Construct a new instance.
|
BlockVector(Vector position)
Construct an instance as a copy of another instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
BlockVector |
toBlockVector()
Create a new
BlockVector from this vector. |
add, add, add, add, ceil, clampY, compareTo, containedWithin, containedWithinBlock, cross, distance, distanceSq, divide, divide, divide, divide, divide, divide, dot, floor, getBlockX, getBlockY, getBlockZ, getMaximum, getMidpoint, getMinimum, getX, getY, getZ, isCollinearWith, length, lengthSq, multiply, multiply, multiply, multiply, multiply, multiply, multiply, normalize, positive, round, setX, setX, setY, setY, setZ, setZ, subtract, subtract, subtract, subtract, toBlockPoint, toBlockPoint, toPitch, toString, toVector2D, toYaw, transform2Dpublic static final BlockVector ZERO
public static final BlockVector UNIT_X
public static final BlockVector UNIT_Y
public static final BlockVector UNIT_Z
public static final BlockVector ONE
public BlockVector(Vector position)
position - the other positionpublic BlockVector(int x,
int y,
int z)
x - the X coordinatey - the Y coordinatez - the Z coordinatepublic BlockVector(float x,
float y,
float z)
x - the X coordinatey - the Y coordinatez - the Z coordinatepublic BlockVector(double x,
double y,
double z)
x - the X coordinatey - the Y coordinatez - the Z coordinatepublic BlockVector toBlockVector()
VectorBlockVector from this vector.toBlockVector in class VectorBlockVectorCopyright © 2010-2014. All Rights Reserved.