Back to FabImage Library website
You are here: Start » Function Reference » Path » Polygon Features » PolygonMassCenter_OrNil

PolygonMassCenter_OrNil
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Computes the mass center of polygon; returns Nil for degenerate inputs.
Syntax
C++
C#
void fil::PolygonMassCenter_OrNil ( const fil::Path& inPolygon, ftl::Conditional<fil::Point2D>& outMassCenter )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPolygon | const Path& | ||
![]() |
outMassCenter | Conditional<Point2D>& |