/** * 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. * * @param lat The latitude of the input value, in degrees. * @param lon The longitude of the input value, in degrees. * @return The output value from the noise module. */ public double getValue(double lat, double lon) { if (module == null) { throw new NoModuleException(); } double[] vec = Utils.latLonToXYZ(lat, lon); return module.getValue(vec[0], vec[1], vec[2]); } }
/** * 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. * * @param lat The latitude of the input value, in degrees. * @param lon The longitude of the input value, in degrees. * @return The output value from the noise module. */ public double getValue(double lat, double lon) { if (module == null) { throw new NoModuleException(); } double[] vec = Utils.latLonToXYZ(lat, lon); return module.getValue(vec[0], vec[1], vec[2]); } }
/** * 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. * * @param lat The latitude of the input value, in degrees. * @param lon The longitude of the input value, in degrees. * @return The output value from the noise module. */ public double getValue(double lat, double lon) { if (module == null) { throw new NoModuleException(); } double[] vec = Utils.latLonToXYZ(lat, lon); return module.getValue(vec[0], vec[1], vec[2]); } }