Class Vector3ifx

    • Constructor Detail

      • Vector3ifx

        public Vector3ifx()
        Construct a zero vector.
      • Vector3ifx

        public Vector3ifx​(javafx.beans.property.IntegerProperty xProperty,
                          javafx.beans.property.IntegerProperty yProperty,
                          javafx.beans.property.IntegerProperty zProperty)
        Construct a vector with the given properties for the coordinates.
        Parameters:
        xProperty - property for the x coordinate.
        yProperty - property for the y coordinate.
        zProperty - property for the z coordinate.
      • Vector3ifx

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

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

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

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

        public Vector3ifx​(float x,
                          float y,
                          float z)
        Construct a vector with the given coordinates.
        Parameters:
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
      • Vector3ifx

        public Vector3ifx​(double x,
                          double y,
                          double z)
        Construct a vector with the given coordinates.
        Parameters:
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
      • Vector3ifx

        public Vector3ifx​(long x,
                          long y,
                          long z)
        Construct a vector with the given coordinates.
        Parameters:
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
    • Method Detail

      • convert

        public static Vector3ifx convert​(Tuple3D<?> tuple)
        Convert the given tuple to a real Vector3ifx.

        If the given tuple is already a Vector3ifx, it is replied.

        Parameters:
        tuple - the tuple.
        Returns:
        the Vector3ifx.
        Since:
        14.0
      • getLength

        public double getLength()
        Description copied from interface: Vector3D
        Returns the length of this vector.
        Specified by:
        getLength in interface Vector3D<Vector3ifx,​Point3ifx>
        Returns:
        the length of this vector
      • lengthProperty

        public javafx.beans.property.DoubleProperty lengthProperty()
        Replies the property that represents the length of the vector.
        Returns:
        the length property
      • getLengthSquared

        public double getLengthSquared()
        Description copied from interface: Vector3D
        Returns the squared length of this vector.
        Specified by:
        getLengthSquared in interface Vector3D<Vector3ifx,​Point3ifx>
        Returns:
        the squared length of this vector
      • lengthSquaredProperty

        public javafx.beans.property.DoubleProperty lengthSquaredProperty()
        Replies the property that represents the length of the vector.
        Returns:
        the length property