Package net.minecraft.util
Class Vec3i
- java.lang.Object
-
- net.minecraft.util.Vec3i
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Vec3i p_compareTo_1_)
Vec3i
crossProduct(Vec3i vec)
Calculate the cross product of this and the given Vectorboolean
equals(java.lang.Object p_equals_1_)
int
getX()
Get the X coordinatedouble
getXD()
Get the X coordinate as a doubleint
getY()
Get the Y coordinatedouble
getYD()
Get the Y coordinate as a doubleint
getZ()
Get the Z coordinatedouble
getZD()
Get the Z coordinate as a doubleint
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(Vec3i p_compareTo_1_)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Vec3i>
-
getX
public int getX()
Get the X coordinate
-
getY
public int getY()
Get the Y coordinate
-
getZ
public int getZ()
Get the Z coordinate
-
getXD
public double getXD()
Get the X coordinate as a double
-
getYD
public double getYD()
Get the Y coordinate as a double
-
getZD
public double getZD()
Get the Z coordinate as a double
-
crossProduct
public Vec3i crossProduct(Vec3i vec)
Calculate the cross product of this and the given Vector
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-