Hi,
I'm trying to access the polygon centroid to center a polygon figure against a point.
It seems that centroid is being used to position the polygon label but doesn't seems to be externally accessible.
that creates centroid for a give array of points -> p4 = board.createElement('centroid', [p1, p2, p3], {name:"S", trace:true});
It is similar to the way geogebra constructor, but doesn't seems to be available/work anymore
In a group example, it seems that it si also internally available for some internal computations :
var pol = board.create('polygon', p, {hasInnerPoints: true});
var g = board.create('group', p).setRotationCenter('centroid').setRotationPoints([p[1], p[2]]);
But again, it doesn't seem to be externally available to access the point.
How can I get that center point of the polygon?
Thanks