Sphere

@addtogroup libnoise @{ @addtogroup models @{ Model that defines the surface of a sphere.

@image html modelsphere.png

This model returns an output value from a noise module given the coordinates of an input value located on the surface of a sphere.

To generate an output value, pass the (latitude, longitude) coordinates of an input value to the GetValue() method.

This model is useful for creating: - seamless textures that can be mapped onto a sphere - terrain height maps for entire planets

This sphere has a radius of 1.0 unit and its center is located at the origin.

Constructors

this
this()

Constructor.

this
this(const(Mod) mod)

Constructor

Members

Functions

GetMod
const(Mod) GetMod()

Returns the noise module that is used to generate the output values.

GetValue
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.

SetMod
void SetMod(const(Mod) mod)

Sets the noise module that is used to generate the output values.

Meta