ol
Version:
OpenLayers mapping library
100 lines • 2.73 kB
TypeScript
export default Circle;
/**
* @classdesc
* Circle geometry.
*
* @api
*/
declare class Circle extends SimpleGeometry {
/**
* @param {!import("../coordinate.js").Coordinate} center Center.
* For internal use, flat coordinates in combination with `opt_layout` and no
* `opt_radius` are also accepted.
* @param {number=} opt_radius Radius.
* @param {import("./GeometryLayout.js").default=} opt_layout Layout.
*/
constructor(center: number[], opt_radius?: number, opt_layout?: any);
/**
* Make a complete copy of the geometry.
* @return {!Circle} Clone.
* @override
* @api
*/
clone(): Circle;
/**
* @inheritDoc
*/
closestPointXY(x: any, y: any, closestPoint: any, minSquaredDistance: any): any;
/**
* @inheritDoc
*/
containsXY(x: any, y: any): boolean;
/**
* Return the center of the circle as {@link module:ol/coordinate~Coordinate coordinate}.
* @return {import("../coordinate.js").Coordinate} Center.
* @api
*/
getCenter(): number[];
/**
* Return the radius of the circle.
* @return {number} Radius.
* @api
*/
getRadius(): number;
/**
* @private
* @return {number} Radius squared.
*/
private getRadiusSquared_;
/**
* @inheritDoc
* @api
*/
getType(): string;
/**
* @inheritDoc
* @api
*/
intersectsExtent(extent: any): any;
/**
* Set the center of the circle as {@link module:ol/coordinate~Coordinate coordinate}.
* @param {import("../coordinate.js").Coordinate} center Center.
* @api
*/
setCenter(center: number[]): void;
/**
* Set the center (as {@link module:ol/coordinate~Coordinate coordinate}) and the radius (as
* number) of the circle.
* @param {!import("../coordinate.js").Coordinate} center Center.
* @param {number} radius Radius.
* @param {import("./GeometryLayout.js").default=} opt_layout Layout.
* @api
*/
setCenterAndRadius(center: number[], radius: number, opt_layout?: any): void;
/**
* @inheritDoc
*/
getCoordinates(): any;
/**
* @inheritDoc
*/
setCoordinates(coordinates: any, opt_layout: any): void;
/**
* Set the radius of the circle. The radius is in the units of the projection.
* @param {number} radius Radius.
* @api
*/
setRadius(radius: number): void;
/**
* @inheritDoc
* @api
*/
rotate(angle: any, anchor: any): void;
/**
* @inheritDoc
* @api
*/
translate(deltaX: any, deltaY: any): void;
}
import SimpleGeometry from "./SimpleGeometry.js";
//# sourceMappingURL=Circle.d.ts.map