public class BlockVector extends Vector
| 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 the Vector object.
|
BlockVector(float x,
float y,
float z)
Construct the Vector object.
|
BlockVector(int x,
int y,
int z)
Construct the Vector object.
|
BlockVector(Vector pt)
Construct the Vector object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks if another object is equivalent.
|
int |
hashCode()
Gets the hash code.
|
BlockVector |
toBlockVector()
Gets a BlockVector version.
|
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, toString, toVector2D, 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 pt)
pt - public BlockVector(int x,
int y,
int z)
x - y - z - public BlockVector(float x,
float y,
float z)
x - y - z - public BlockVector(double x,
double y,
double z)
x - y - z - public boolean equals(Object obj)
public int hashCode()
public BlockVector toBlockVector()
VectortoBlockVector in class VectorCopyright © 2010-2014. All Rights Reserved.