Modifier and Type | Field and Description |
---|---|
static Vec3i |
NULL_VECTOR
The Null vector constant (0, 0, 0)
|
Constructor and Description |
---|
Vec3i(double xIn,
double yIn,
double zIn) |
Vec3i(int xIn,
int yIn,
int zIn) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Vec3i p_compareTo_1_) |
Vec3i |
crossProduct(Vec3i vec)
Calculate the cross product of this and the given Vector
|
double |
distanceSq(double toX,
double toY,
double toZ)
Calculate squared distance to the given coordinates
|
double |
distanceSq(Vec3i to)
Calculate squared distance to the given Vector
|
double |
distanceSqToCenter(double xIn,
double yIn,
double zIn)
Compute square of distance from point x, y, z to center of this Block
|
boolean |
equals(java.lang.Object p_equals_1_) |
int |
getX()
Get the X coordinate
|
int |
getY()
Get the Y coordinate
|
int |
getZ()
Get the Z coordinate
|
int |
hashCode() |
java.lang.String |
toString() |
public static final Vec3i NULL_VECTOR
public Vec3i(int xIn, int yIn, int zIn)
public Vec3i(double xIn, double yIn, double zIn)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Vec3i p_compareTo_1_)
compareTo
in interface java.lang.Comparable<Vec3i>
public int getX()
public int getY()
public int getZ()
public Vec3i crossProduct(Vec3i vec)
public double distanceSq(double toX, double toY, double toZ)
public double distanceSqToCenter(double xIn, double yIn, double zIn)
public double distanceSq(Vec3i to)
public java.lang.String toString()
toString
in class java.lang.Object