Add stability annotation to ol.geom.Circle
This commit is contained in:
@@ -14,6 +14,7 @@ goog.require('ol.geom.flat');
|
|||||||
* @param {ol.geom.RawPoint} center Center.
|
* @param {ol.geom.RawPoint} center Center.
|
||||||
* @param {number=} opt_radius Radius.
|
* @param {number=} opt_radius Radius.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.geom.Circle = function(center, opt_radius, opt_layout) {
|
ol.geom.Circle = function(center, opt_radius, opt_layout) {
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
@@ -78,6 +79,7 @@ ol.geom.Circle.prototype.containsXY = function(x, y) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.RawPoint} Center.
|
* @return {ol.geom.RawPoint} Center.
|
||||||
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.geom.Circle.prototype.getCenter = function() {
|
ol.geom.Circle.prototype.getCenter = function() {
|
||||||
return this.flatCoordinates.slice(0, this.stride);
|
return this.flatCoordinates.slice(0, this.stride);
|
||||||
@@ -104,6 +106,7 @@ ol.geom.Circle.prototype.getExtent = function(opt_extent) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {number} Radius.
|
* @return {number} Radius.
|
||||||
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.geom.Circle.prototype.getRadius = function() {
|
ol.geom.Circle.prototype.getRadius = function() {
|
||||||
var dx = this.flatCoordinates[this.stride] - this.flatCoordinates[0];
|
var dx = this.flatCoordinates[this.stride] - this.flatCoordinates[0];
|
||||||
@@ -130,6 +133,7 @@ ol.geom.Circle.prototype.getType = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.geom.RawPoint} center Center.
|
* @param {ol.geom.RawPoint} center Center.
|
||||||
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.geom.Circle.prototype.setCenter = function(center) {
|
ol.geom.Circle.prototype.setCenter = function(center) {
|
||||||
var stride = this.stride;
|
var stride = this.stride;
|
||||||
@@ -149,6 +153,7 @@ ol.geom.Circle.prototype.setCenter = function(center) {
|
|||||||
* @param {ol.geom.RawPoint} center Center.
|
* @param {ol.geom.RawPoint} center Center.
|
||||||
* @param {number} radius Radius.
|
* @param {number} radius Radius.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.geom.Circle.prototype.setCenterAndRadius =
|
ol.geom.Circle.prototype.setCenterAndRadius =
|
||||||
function(center, radius, opt_layout) {
|
function(center, radius, opt_layout) {
|
||||||
@@ -187,6 +192,7 @@ ol.geom.Circle.prototype.setFlatCoordinates =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {number} radius Radius.
|
* @param {number} radius Radius.
|
||||||
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.geom.Circle.prototype.setRadius = function(radius) {
|
ol.geom.Circle.prototype.setRadius = function(radius) {
|
||||||
goog.asserts.assert(!goog.isNull(this.flatCoordinates));
|
goog.asserts.assert(!goog.isNull(this.flatCoordinates));
|
||||||
|
|||||||
Reference in New Issue
Block a user