Class Sphere


  • public class Sphere
    extends Object
    Model that defines the surface of a sphere.
    • Constructor Detail

      • Sphere

        public Sphere​(Module module)
        Constructor
        Parameters:
        module - The noise module that is used to generate the output values.
    • Method Detail

      • getModule

        public Module getModule()
        Returns the noise module that is used to generate the output values.
      • setModule

        public void setModule​(Module module)
        Sets the noise module that is used to generate the output values.
        Parameters:
        module - The noise module that is used to generate the output values. This noise module must exist for the lifetime of this object, until you pass a new noise module to this method.
      • getValue

        public double getValue​(double lat,
                               double lon)
        Returns the output value from the noise module given the (latitude, longitude) coordinates of the specified input value located on the surface of the sphere.
        Parameters:
        lat - The latitude of the input value, in degrees.
        lon - The longitude of the input value, in degrees.
        Returns:
        The output value from the noise module.