public class BlockVector2D extends Vector2D
| Modifier and Type | Field and Description |
|---|---|
static BlockVector2D |
ONE |
static BlockVector2D |
UNIT_X |
static BlockVector2D |
UNIT_Z |
static BlockVector2D |
ZERO |
| Constructor and Description |
|---|
BlockVector2D(double x,
double z)
Construct the Vector object.
|
BlockVector2D(float x,
float z)
Construct the Vector object.
|
BlockVector2D(int x,
int z)
Construct the Vector object.
|
BlockVector2D(Vector2D 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.
|
BlockVector2D |
toBlockVector2D()
Gets a BlockVector version.
|
add, add, add, add, ceil, containedWithin, containedWithinBlock, distance, distanceSq, divide, divide, divide, divide, divide, divide, dot, floor, getBlockX, getBlockZ, getMaximum, getMinimum, getX, getZ, isCollinearWith, length, lengthSq, multiply, multiply, multiply, multiply, multiply, multiply, multiply, normalize, positive, round, setX, setX, setZ, setZ, subtract, subtract, subtract, subtract, toString, toVector, toVector, transform2Dpublic static final BlockVector2D ZERO
public static final BlockVector2D UNIT_X
public static final BlockVector2D UNIT_Z
public static final BlockVector2D ONE
public BlockVector2D(Vector2D pt)
pt - public BlockVector2D(int x,
int z)
x - z - public BlockVector2D(float x,
float z)
x - z - public BlockVector2D(double x,
double z)
x - z - public boolean equals(Object obj)
public int hashCode()
public BlockVector2D toBlockVector2D()
Vector2DtoBlockVector2D in class Vector2DCopyright © 2010-2014. All Rights Reserved.