Better docs for ol.Sphere#offset

This commit is contained in:
Éric Lemoine
2014-09-17 18:21:39 +02:00
parent ac8e7e16c2
commit 122b535393

View File

@@ -214,12 +214,13 @@ ol.Sphere.prototype.midpoint = function(c1, c2) {
/**
* Returns the coordinate at the given distance and bearing from c.
* Returns the coordinate at the given distance and bearing from `c1`.
*
* @param {ol.Coordinate} c1 Coordinate.
* @param {number} distance Distance.
* @param {number} bearing Bearing.
* @return {ol.Coordinate} Coordinate.
* @param {ol.Coordinate} c1 The origin point (`[lon, lat]` in degrees).
* @param {number} distance The great-circle distance between the origin
* point and the target point.
* @param {number} bearing The bearing (in radians).
* @return {ol.Coordinate} The target point.
*/
ol.Sphere.prototype.offset = function(c1, distance, bearing) {
var lat1 = goog.math.toRadians(c1[1]);