czm_latitudeToWebMercatorFraction
Computes the fraction of a Web Wercator rectangle at which a given geodetic latitude is located.
Parameters:
Name | Type | Description |
---|---|---|
The |
float | geodetic latitude, in radians. |
The |
float | low portion of the Web Mercator coordinate of the southern boundary of the rectangle. |
The |
float | high portion of the Web Mercator coordinate of the southern boundary of the rectangle. |
The |
float | total height of the rectangle in Web Mercator coordinates. |
Returns:
float
The fraction of the rectangle at which the latitude occurs. If the latitude is the southern
boundary of the rectangle, the return value will be zero. If it is the northern boundary, the return
value will be 1.0. Latitudes in between are mapped according to the Web Mercator projection.