Class Vec3Impl
java.lang.Object
com.gtnewhorizon.structurelib.util.Vec3Impl
- All Implemented Interfaces:
Comparable<Vec3Impl>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabs()add(int pos0, int pos1, int pos2) intcrossProduct(Vec3Impl vec) doubledistanceSq(double x, double y, double z, boolean useCenter) doubledistanceSq(Vec3Impl to) doubledistanceSq(IPosition to, boolean useCenter) booleanintget(int index) Gets the coordinate.intget0()Gets the X coordinate.intget1()Gets the Y coordinate.intget2()Gets the Z coordinate.static Vec3ImplgetFromPool(int in0, int in1, int in2) THIS WILL CAUSE THIS VECTOR TO PERMANENTLY RESIDE IN STATIC MEMORY.inthashCode()intoffset(net.minecraftforge.common.util.ForgeDirection facing, int n) sub(int pos0, int pos1, int pos2) toString()booleanwithinDistance(Vec3Impl to, double distance) booleanwithinDistance(IPosition to, double distance)
-
Field Details
-
NULL_VECTOR
-
-
Constructor Details
-
Vec3Impl
public Vec3Impl(int in0, int in1, int in2)
-
-
Method Details
-
getFromPool
THIS WILL CAUSE THIS VECTOR TO PERMANENTLY RESIDE IN STATIC MEMORY. DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING!!! -
compareTo
- Specified by:
compareToin interfaceComparable<Vec3Impl>
-
get
public int get(int index) Gets the coordinate. -
get0
public int get0()Gets the X coordinate. -
get1
public int get1()Gets the Y coordinate. -
get2
public int get2()Gets the Z coordinate. -
offset
-
add
-
sub
-
add
-
sub
-
crossProduct
-
withinDistance
-
withinDistance
-
distanceSq
-
distanceSq
-
distanceSq
public double distanceSq(double x, double y, double z, boolean useCenter) -
manhattanDistance
-
toString
-
abs
-
equals
-
hashCode
-