Class ImmutablePoint3D

    • Constructor Detail

      • ImmutablePoint3D

        public ImmutablePoint3D​(int x,
                                int y,
                                int z)
        Constructor.
        Parameters:
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
      • ImmutablePoint3D

        public ImmutablePoint3D​(double x,
                                double y,
                                double z)
        Constructor.
        Parameters:
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
    • Method Detail

      • equals

        @Pure
        public boolean equals​(Object obj)
        Description copied from interface: Tuple3D
        Returns true if the Object t1 is of type Tuple2f and all of the data members of t1 are equal to the corresponding data members in this Tuple2f.
        Specified by:
        equals in interface Tuple3D<ImmutablePoint3D>
        Overrides:
        equals in class Object
        Parameters:
        obj - the object with which the comparison is made
        Returns:
        true or false
      • hashCode

        @Pure
        public int hashCode()
        Description copied from interface: Tuple3D
        Returns a hash code value based on the data values in this object. Two different Tuple2f objects with identical data values (i.e., Tuple2f.equals returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.
        Specified by:
        hashCode in interface Tuple3D<ImmutablePoint3D>
        Overrides:
        hashCode in class Object
        Returns:
        the integer hash code value
      • toJson

        public void toJson​(JsonBuffer buffer)
        Description copied from interface: JsonableObject
        Replies the Json representation of this node.
        Specified by:
        toJson in interface JsonableObject
        Parameters:
        buffer - the Json buffer.
      • getX

        public double getX()
        Description copied from interface: Tuple3D
        Get the x coordinate.
        Specified by:
        getX in interface Tuple3D<ImmutablePoint3D>
        Returns:
        the x coordinate.
      • ix

        public int ix()
        Description copied from interface: Tuple3D
        Get the x coordinate.
        Specified by:
        ix in interface Tuple3D<ImmutablePoint3D>
        Returns:
        the x coordinate.
      • getY

        public double getY()
        Description copied from interface: Tuple3D
        Get the y coordinate.
        Specified by:
        getY in interface Tuple3D<ImmutablePoint3D>
        Returns:
        the y coordinate.
      • iy

        public int iy()
        Description copied from interface: Tuple3D
        Get the y coordinate.
        Specified by:
        iy in interface Tuple3D<ImmutablePoint3D>
        Returns:
        the y coordinate.
      • getZ

        public double getZ()
        Description copied from interface: Tuple3D
        Get the z coordinate.
        Specified by:
        getZ in interface Tuple3D<ImmutablePoint3D>
        Returns:
        the z coordinate.
      • iz

        public int iz()
        Description copied from interface: Tuple3D
        Get the z coordinate.
        Specified by:
        iz in interface Tuple3D<ImmutablePoint3D>
        Returns:
        the z coordinate.