    

 ## On this page

  

 

 # SurfacePolygonBarycentre

 Last update: 09.03.2026 

## Description

Return value: returns an array of 2 VARIANT representing of the barycentre x and y values for the given polygonal area.

## Syntax

*object*.SurfacePolygonBarycentre(VARIANT\* vPtX, VARIANT\* vPtY) As Variant

- *object*: Virtual Photometric Lab object
- *vPtX*: array of VARIANT for the horizontal coordinate of each vertex of the polygon
- *vPtY*: array of VARIANT for the vertical coordinate of each vertex of the polygon