public class Vec3Impl extends Object implements Comparable<Vec3Impl>
| Modifier and Type | Field and Description |
|---|---|
static Vec3Impl |
NULL_VECTOR |
| Constructor and Description |
|---|
Vec3Impl(int in0,
int in1,
int in2) |
| Modifier and Type | Method and Description |
|---|---|
Vec3Impl |
abs() |
Vec3Impl |
add(int pos0,
int pos1,
int pos2) |
Vec3Impl |
add(Vec3Impl pos) |
int |
compareTo(Vec3Impl o) |
Vec3Impl |
crossProduct(Vec3Impl vec) |
double |
distanceSq(double x,
double y,
double z,
boolean useCenter) |
double |
distanceSq(IPosition to,
boolean useCenter) |
double |
distanceSq(Vec3Impl to) |
boolean |
equals(Object o) |
int |
get(int index)
Gets the coordinate.
|
int |
get0()
Gets the X coordinate.
|
int |
get1()
Gets the Y coordinate.
|
int |
get2()
Gets the Z coordinate.
|
int |
hashCode() |
int |
manhattanDistance(Vec3Impl to) |
Vec3Impl |
offset(net.minecraftforge.common.util.ForgeDirection facing,
int n) |
Vec3Impl |
sub(int pos0,
int pos1,
int pos2) |
Vec3Impl |
sub(Vec3Impl pos) |
String |
toString() |
boolean |
withinDistance(IPosition to,
double distance) |
boolean |
withinDistance(Vec3Impl to,
double distance) |
public static final Vec3Impl NULL_VECTOR
public int compareTo(Vec3Impl o)
compareTo in interface Comparable<Vec3Impl>public int get(int index)
public int get0()
public int get1()
public int get2()
public Vec3Impl offset(net.minecraftforge.common.util.ForgeDirection facing, int n)
public Vec3Impl add(int pos0, int pos1, int pos2)
public Vec3Impl sub(int pos0, int pos1, int pos2)
public boolean withinDistance(Vec3Impl to, double distance)
public boolean withinDistance(IPosition to, double distance)
public double distanceSq(Vec3Impl to)
public double distanceSq(IPosition to, boolean useCenter)
public double distanceSq(double x,
double y,
double z,
boolean useCenter)
public int manhattanDistance(Vec3Impl to)
public Vec3Impl abs()