Class Interpolator
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 Summary
Modifier and TypeMethodDescriptionstatic Set<CartesianUnit>cartesian180(IVector vector, double step) Generates a set of CartesianUnits using the given IVector and step value.static Set<CartesianUnit>cartesian270(IVector vector, double step) Generates a set of CartesianUnits using the given IVector and step value.static Set<CartesianUnit>cartesian360(IVector vector, double step) Generates a set of CartesianUnits using the given IVector and step value.static Set<CartesianUnit>cartesian45(IVector vector, double step) Generates a set of CartesianUnits using the given IVector and step value.static Set<CartesianUnit>cartesian90(IVector vector, double step) Generates a set of CartesianUnits using the given IVector and step value.polarSet180(IScalar scalar, double step) Generates a set of PolarUnits using the given IScalar and step value.polarSet270(IScalar scalar, double step) Generates a set of PolarUnits using the given IScalar and step value.polarSet360(IScalar scalar, double step) Generates a set of PolarUnits using the given IScalar and step value.polarSet45(IScalar scalar, double step) Generates a set of PolarUnits using the given IScalar and step value.polarSet90(IScalar scalar, double step) Generates a set of PolarUnits using the given IScalar and step value.static Set<SphericalUnit>sphericalUnit180(IScalar scalar, double step) Generates a set of SphericalUnits using the given IScalar and step value.static Set<SphericalUnit>sphericalUnit270(IScalar scalar, double step) Generates a set of SphericalUnits using the given IScalar and step value.static Set<SphericalUnit>sphericalUnit360(IScalar scalar, double step) Generates a set of SphericalUnits using the given IScalar and step value.static Set<SphericalUnit>sphericalUnit45(IScalar scalar, double step) Generates a set of SphericalUnits using the given IScalar and step value.static Set<SphericalUnit>sphericalUnit90(IScalar scalar, double step) Generates a set of SphericalUnits using the given IScalar and step value.
-
Method Details
-
cartesian45
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 CartesianUnitsstep- 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
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 CartesianUnitsstep- 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
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 CartesianUnitsstep- 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
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 CartesianUnitsstep- 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
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 CartesianUnitsstep- 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
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
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
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
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
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
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
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
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
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
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:
-