import { Geometry, Point } from "../../internal"; /** * Calculate the centroid from curve based geometries. Implementation based on * the JTS (Java Topology Suite) CentroidLine. */ export declare class CentroidCurve { /** * Sum of curve point locations */ private _sum; /** * Total length of curves */ private _totalLength; constructor(); constructor(geometry: Geometry); /** * Add a curve based dimension 1 geometry to the centroid total. Ignores * dimension 0 geometries. * @param geometry geometry */ add(geometry: Geometry): void; /** * Add line strings to the centroid total * @param lineStrings line strings */ private addLineStrings; /** * Add a line string to the centroid total * @param lineString line string */ private addLineString; /** * Add points to the centroid total * * @param points * points */ private addPoints; /** * Get the centroid point * @return centroid point */ getCentroid(): Point; }