Class Vector3dfx

    • Constructor Detail

      • Vector3dfx

        public Vector3dfx()
        Construct a zero vector.
      • Vector3dfx

        public Vector3dfx​(javafx.beans.property.DoubleProperty x,
                          javafx.beans.property.DoubleProperty y,
                          javafx.beans.property.DoubleProperty z)
        Construct a vector with the given coordinate properties.
        Parameters:
        x - the property for the x coordinate.
        y - the property for the y coordinate.
        z - the property for the y coordinate.
      • Vector3dfx

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

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

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

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

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

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

        public Vector3dfx​(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 Vector3dfx convert​(Tuple3D<?> tuple)
        Convert the given tuple to a real Vector3dfx.

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

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

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

        public javafx.beans.property.ReadOnlyDoubleProperty 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<Vector3dfx,​Point3dfx>
        Returns:
        the squared length of this vector
      • lengthSquaredProperty

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