API Reference > geometry-core > CartesianGeometry > PolygonOps > centroidAndAreaXY centroidAndAreaXY MethodStatic Return (in caller-allocated centroid) the centroid of the xy polygon. Return (as function value) the area centroidAndAreaXY(points: Point2d[], centroid: Point2d): number | undefined Parameter Type Description points Point2d[] centroid Point2d Returns - number | undefined Defined in core/geometry/src/geometry3d/PolygonOps.ts Line 414 Last Updated: 13 June, 2024