import { Geometry, Point } from "../../internal"; /** * Centroid calculations for geometries in degrees * */ export declare class DegreesCentroid { /** * Geometry */ private _geometry; /** * Number of points */ private _points; /** * x sum */ private _x; /** * y sum */ private _y; /** * z sum */ private _z; constructor(); constructor(geometry: Geometry); /** * Get the degree geometry centroid * @param geometry geometry * @return centroid point */ static getCentroid(geometry: Geometry): Point; /** * Get the centroid point * @return centroid point */ getCentroid(): Point; /** * Add to the centroid calculation for the Geometry * * @param geometry * Geometry */ private calculate; /** * Add to the centroid calculation for the Point * @param point Point */ private calculatePoint; /** * Add to the centroid calculation for the Line String * @param lineString Line String */ private calculateLineString; /** * Add to the centroid calculation for the Polygon * @param polygon Polygon */ private calculatePolygon; /** * Add to the centroid calculation for the Geometry Collection * @param geometryCollection Geometry Collection */ private calculateGeometryCollection; /** * Add to the centroid calculation for the Compound Curve * @param compoundCurve Compound Curve */ private calculateCompoundCurve; /** * Add to the centroid calculation for the Curve Polygon * @param curvePolygon Curve Polygon */ private calculateCurvePolygon; /** * Add to the centroid calculation for the Polyhedral Surface * @param polyhedralSurface Polyhedral Surface */ private calculatePolyhedralSurface; }