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 intcompareTo(Vec3i p_compareTo_1_)Vec3icrossProduct(Vec3i vec)Calculate the cross product of this and the given Vectorbooleanequals(java.lang.Object p_equals_1_)intgetX()Get the X coordinatedoublegetXD()Get the X coordinate as a doubleintgetY()Get the Y coordinatedoublegetYD()Get the Y coordinate as a doubleintgetZ()Get the Z coordinatedoublegetZD()Get the Z coordinate as a doubleinthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(Vec3i p_compareTo_1_)
- Specified by:
compareToin 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:
toStringin classjava.lang.Object
-
-