Class Interpolator

java.lang.Object
io.github.simplexdev.polarize.util.Interpolator

public class Interpolator extends Object
A utility class for generating sets of coordinate units based on different coordinate systems.

This class provides several methods for generating sets of coordinate units based on different coordinate systems like Cartesian, Polar and Spherical. These methods take input vectors and scalars, and generate corresponding coordinate units by iterating through angles in specific steps.

The generated sets of coordinate units can be used for interpolation and other mathematical operations involving coordinates in different coordinate systems.

See Also:
  • Method Details

    • cartesian45

      public static Set<CartesianUnit> cartesian45(IVector vector, double step)
      Generates a set of CartesianUnits using the given IVector and step value. This method generates the CartesianUnits by iterating through angles i and j in steps of the given value, up to 45 degrees, and then computing their respective x, y and z values using the magnitude and azimuth and polar angles of the input vector.
      Parameters:
      vector - the input vector used to generate the CartesianUnits
      step - the step value used for the angles 'i' and 'j'
      Returns:
      a set of CartesianUnits generated from the input vector and step value
      See Also:
    • cartesian90

      public static Set<CartesianUnit> cartesian90(IVector vector, double step)
      Generates a set of CartesianUnits using the given IVector and step value. This method generates the CartesianUnits by iterating through angles i and j in steps of the given value, up to 90 degrees, and then computing their respective x, y and z values using the magnitude and azimuth and polar angles of the input vector.
      Parameters:
      vector - the input vector used to generate the CartesianUnits
      step - the step value used for the angles 'i' and 'j'
      Returns:
      a set of CartesianUnits generated from the input vector and step value
      See Also:
    • cartesian180

      public static Set<CartesianUnit> cartesian180(IVector vector, double step)
      Generates a set of CartesianUnits using the given IVector and step value. This method generates the CartesianUnits by iterating through angles i and j in steps of the given value, up to 180 degrees, and then computing their respective x, y and z values using the magnitude and azimuth and polar angles of the input vector.
      Parameters:
      vector - the input vector used to generate the CartesianUnits
      step - the step value used for the angles 'i' and 'j'
      Returns:
      a set of CartesianUnits generated from the input vector and step value
      See Also:
    • cartesian270

      public static Set<CartesianUnit> cartesian270(IVector vector, double step)
      Generates a set of CartesianUnits using the given IVector and step value. This method generates the CartesianUnits by iterating through angles i and j in steps of the given value, up to 270 degrees, and then computing their respective x, y and z values using the magnitude and azimuth and polar angles of the input vector.
      Parameters:
      vector - the input vector used to generate the CartesianUnits
      step - the step value used for the angles 'i' and 'j'
      Returns:
      a set of CartesianUnits generated from the input vector and step value
      See Also:
    • cartesian360

      public static Set<CartesianUnit> cartesian360(IVector vector, double step)
      Generates a set of CartesianUnits using the given IVector and step value. This method generates the CartesianUnits by iterating through angles i and j in steps of the given value, up to 360 degrees, and then computing their respective x, y and z values using the magnitude and azimuth and polar angles of the input vector.
      Parameters:
      vector - the input vector used to generate the CartesianUnits
      step - the step value used for the angles 'i' and 'j'
      Returns:
      a set of CartesianUnits generated from the input vector and step value
      See Also:
    • polarSet45

      public static Set<PolarUnit> polarSet45(IScalar scalar, double step)
      Generates a set of PolarUnits using the given IScalar and step value.

      This method generates the PolarUnits by iterating through angles in steps of the given value, up to a maximum of 45 degrees, and then computing their respective magnitude and angle values using the magnitude of the input scalar.

      Parameters:
      scalar - The input scalar used to generate the PolarUnits.
      step - The step value used to increment angles while generating the PolarUnits.
      Returns:
      A set of PolarUnits generated from the input scalar and step value.
      See Also:
    • polarSet90

      public static Set<PolarUnit> polarSet90(IScalar scalar, double step)
      Generates a set of PolarUnits using the given IScalar and step value.

      This method generates the PolarUnits by iterating through angles in steps of the given value, up to a maximum of 90 degrees, and then computing their respective magnitude and angle values using the magnitude of the input scalar.

      Parameters:
      scalar - The input scalar used to generate the PolarUnits.
      step - The step value used to increment angles while generating the PolarUnits.
      Returns:
      A set of PolarUnits generated from the input scalar and step value.
      See Also:
    • polarSet180

      public static Set<PolarUnit> polarSet180(IScalar scalar, double step)
      Generates a set of PolarUnits using the given IScalar and step value.

      This method generates the PolarUnits by iterating through angles in steps of the given value, up to a maximum of 180 degrees, and then computing their respective magnitude and angle values using the magnitude of the input scalar.

      Parameters:
      scalar - The input scalar used to generate the PolarUnits.
      step - The step value used to increment angles while generating the PolarUnits.
      Returns:
      A set of PolarUnits generated from the input scalar and step value.
      See Also:
    • polarSet270

      public static Set<PolarUnit> polarSet270(IScalar scalar, double step)
      Generates a set of PolarUnits using the given IScalar and step value.

      This method generates the PolarUnits by iterating through angles in steps of the given value, up to a maximum of 270 degrees, and then computing their respective magnitude and angle values using the magnitude of the input scalar.

      Parameters:
      scalar - The input scalar used to generate the PolarUnits.
      step - The step value used to increment angles while generating the PolarUnits.
      Returns:
      A set of PolarUnits generated from the input scalar and step value.
      See Also:
    • polarSet360

      public static Set<PolarUnit> polarSet360(IScalar scalar, double step)
      Generates a set of PolarUnits using the given IScalar and step value.

      This method generates the PolarUnits by iterating through angles in steps of the given value, up to a maximum of 45 degrees, and then computing their respective magnitude and angle values using the magnitude of the input scalar.

      Parameters:
      scalar - The input scalar used to generate the PolarUnits.
      step - The step value used to increment angles while generating the PolarUnits.
      Returns:
      A set of PolarUnits generated from the input scalar and step value.
      See Also:
    • sphericalUnit45

      public static Set<SphericalUnit> sphericalUnit45(IScalar scalar, double step)
      Generates a set of SphericalUnits using the given IScalar and step value. This method generates the SphericalUnits by iterating through angles i and j in steps of the given value, up to a maximum of 45 degrees, and then computing their respective magnitude, zenith and azimuth values using the magnitude of the input scalar.
      Parameters:
      scalar - The input scalar used to generate the SphericalUnits.
      step - The step value used to increment angles i and j while generating the SphericalUnits.
      Returns:
      A set of SphericalUnits generated from the input scalar and step value.
      See Also:
    • sphericalUnit90

      public static Set<SphericalUnit> sphericalUnit90(IScalar scalar, double step)
      Generates a set of SphericalUnits using the given IScalar and step value. This method generates the SphericalUnits by iterating through angles i and j in steps of the given value, up to a maximum of 90 degrees, and then computing their respective magnitude, zenith and azimuth values using the magnitude of the input scalar.
      Parameters:
      scalar - The input scalar used to generate the SphericalUnits.
      step - The step value used to increment angles i and j while generating the SphericalUnits.
      Returns:
      A set of SphericalUnits generated from the input scalar and step value.
      See Also:
    • sphericalUnit180

      public static Set<SphericalUnit> sphericalUnit180(IScalar scalar, double step)
      Generates a set of SphericalUnits using the given IScalar and step value. This method generates the SphericalUnits by iterating through angles i and j in steps of the given value, up to a maximum of 180 degrees, and then computing their respective magnitude, zenith and azimuth values using the magnitude of the input scalar.
      Parameters:
      scalar - The input scalar used to generate the SphericalUnits.
      step - The step value used to increment angles i and j while generating the SphericalUnits.
      Returns:
      A set of SphericalUnits generated from the input scalar and step value.
      See Also:
    • sphericalUnit270

      public static Set<SphericalUnit> sphericalUnit270(IScalar scalar, double step)
      Generates a set of SphericalUnits using the given IScalar and step value. This method generates the SphericalUnits by iterating through angles i and j in steps of the given value, up to a maximum of 270 degrees, and then computing their respective magnitude, zenith and azimuth values using the magnitude of the input scalar.
      Parameters:
      scalar - The input scalar used to generate the SphericalUnits.
      step - The step value used to increment angles i and j while generating the SphericalUnits.
      Returns:
      A set of SphericalUnits generated from the input scalar and step value.
      See Also:
    • sphericalUnit360

      public static Set<SphericalUnit> sphericalUnit360(IScalar scalar, double step)
      Generates a set of SphericalUnits using the given IScalar and step value. This method generates the SphericalUnits by iterating through angles i and j in steps of the given value, up to a maximum of 360 degrees, and then computing their respective magnitude, zenith and azimuth values using the magnitude of the input scalar.
      Parameters:
      scalar - The input scalar used to generate the SphericalUnits.
      step - The step value used to increment angles i and j while generating the SphericalUnits.
      Returns:
      A set of SphericalUnits generated from the input scalar and step value.
      See Also: