Class Vec3i

  • All Implemented Interfaces:
    java.lang.Comparable<Vec3i>
    Direct Known Subclasses:
    BlockPos

    public class Vec3i
    extends java.lang.Object
    implements java.lang.Comparable<Vec3i>
    This code is owned by Minecraft
    • Constructor Summary

      Constructors 
      Constructor Description
      Vec3i​(double xIn, double yIn, double zIn)  
      Vec3i​(int xIn, int yIn, int zIn)  
    • 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 Vector
      boolean equals​(java.lang.Object p_equals_1_)  
      int getX()
      Get the X coordinate
      double getXD()
      Get the X coordinate as a double
      int getY()
      Get the Y coordinate
      double getYD()
      Get the Y coordinate as a double
      int getZ()
      Get the Z coordinate
      double getZD()
      Get the Z coordinate as a double
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Vec3i

        public Vec3i​(int xIn,
                     int yIn,
                     int zIn)
      • Vec3i

        public Vec3i​(double xIn,
                     double yIn,
                     double zIn)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Vec3i p_compareTo_1_)
        Specified by:
        compareTo in interface java.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 class java.lang.Object