Class Tuple3dfx<RT extends Tuple3dfx<? super RT>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javafx.beans.property.DoubleProperty x
      x coordinate.
      (package private) javafx.beans.property.DoubleProperty y
      y coordinate.
      (package private) javafx.beans.property.DoubleProperty z
      y coordinate.
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple3dfx()
      Construct a zero tuple.
      Tuple3dfx​(double[] tuple)
      Constructor by copy.
      Tuple3dfx​(double x, double y, double z)
      Construct a tuple with the three given coordinates.
      Tuple3dfx​(int[] tuple)
      Constructor by copy.
      Tuple3dfx​(int x, int y, int z)
      Construct a tuple with the three given coordinates.
      Tuple3dfx​(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)
      Construct a tuple with the two given properties for its coordinates.
      Tuple3dfx​(Tuple3D<?> tuple)
      Constructor by copy.
    • Field Detail

      • x

        javafx.beans.property.DoubleProperty x
        x coordinate.
      • y

        javafx.beans.property.DoubleProperty y
        y coordinate.
      • z

        javafx.beans.property.DoubleProperty z
        y coordinate.
    • Constructor Detail

      • Tuple3dfx

        public Tuple3dfx()
        Construct a zero tuple.
      • Tuple3dfx

        public Tuple3dfx​(javafx.beans.property.DoubleProperty x,
                         javafx.beans.property.DoubleProperty y,
                         javafx.beans.property.DoubleProperty z)
        Construct a tuple with the two given properties for its coordinates.
        Parameters:
        x - the property for the x coordinate.
        y - the property for the y coordinate.
        z - the property for the z coordinate.
      • Tuple3dfx

        public Tuple3dfx​(Tuple3D<?> tuple)
        Constructor by copy.
        Parameters:
        tuple - is the tuple to copy.
      • Tuple3dfx

        public Tuple3dfx​(int[] tuple)
        Constructor by copy.
        Parameters:
        tuple - is the tuple to copy.
      • Tuple3dfx

        public Tuple3dfx​(double[] tuple)
        Constructor by copy.
        Parameters:
        tuple - is the tuple to copy.
      • Tuple3dfx

        public Tuple3dfx​(int x,
                         int y,
                         int z)
        Construct a tuple with the three given coordinates.
        Parameters:
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
      • Tuple3dfx

        public Tuple3dfx​(double x,
                         double y,
                         double z)
        Construct a tuple with the three given coordinates.
        Parameters:
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
    • Method Detail

      • set

        void set​(javafx.beans.property.DoubleProperty x,
                 javafx.beans.property.DoubleProperty y,
                 javafx.beans.property.DoubleProperty z)
        Change the x, y and z properties.
        Parameters:
        x - the new x property.
        y - the new y property.
        z - the new z property.
      • clone

        @Pure
        public RT clone()
        Description copied from interface: Tuple3D
        Clone this point.
        Specified by:
        clone in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Overrides:
        clone in class Object
        Returns:
        the clone.
      • equals

        @Pure
        public boolean equals​(Object t1)
        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<RT extends Tuple3dfx<? super RT>>
        Overrides:
        equals in class Object
        Parameters:
        t1 - 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<RT extends Tuple3dfx<? super RT>>
        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.
      • xProperty

        @Pure
        public javafx.beans.property.DoubleProperty xProperty()
        Replies the x property.
        Returns:
        the x property.
      • yProperty

        @Pure
        public javafx.beans.property.DoubleProperty yProperty()
        Replies the y property.
        Returns:
        the y property.
      • zProperty

        @Pure
        public javafx.beans.property.DoubleProperty zProperty()
        Replies the z property.
        Returns:
        the z property.
      • getX

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

        public int ix()
        Description copied from interface: Tuple3D
        Get the x coordinate.
        Specified by:
        ix in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Returns:
        the x coordinate.
      • setX

        public void setX​(int x)
        Description copied from interface: Tuple3D
        Set the x coordinate.
        Specified by:
        setX in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Parameters:
        x - value to x coordinate.
      • setX

        public void setX​(double x)
        Description copied from interface: Tuple3D
        Set the x coordinate.
        Specified by:
        setX in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Parameters:
        x - value to x coordinate.
      • getY

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

        public int iy()
        Description copied from interface: Tuple3D
        Get the y coordinate.
        Specified by:
        iy in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Returns:
        the y coordinate.
      • setY

        public void setY​(int y)
        Description copied from interface: Tuple3D
        Set the y coordinate.
        Specified by:
        setY in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Parameters:
        y - value to y coordinate.
      • setY

        public void setY​(double y)
        Description copied from interface: Tuple3D
        Set the y coordinate.
        Specified by:
        setY in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Parameters:
        y - value to y coordinate.
      • getZ

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

        public int iz()
        Description copied from interface: Tuple3D
        Get the z coordinate.
        Specified by:
        iz in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Returns:
        the z coordinate.
      • setZ

        public void setZ​(int z)
        Description copied from interface: Tuple3D
        Set the z coordinate.
        Specified by:
        setZ in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Parameters:
        z - value to z coordinate.
      • setZ

        public void setZ​(double z)
        Description copied from interface: Tuple3D
        Set the z coordinate.
        Specified by:
        setZ in interface Tuple3D<RT extends Tuple3dfx<? super RT>>
        Parameters:
        z - value to z coordinate.