polygonCenter method
@brief Get polygon geometric center @param polygon polygon object for calculation @see Polygon "Polygon" @return center point @see Point "Point"
Dart code snippet: @snippet geometry_utils_example.dart dart_GeometryUtils_polygonCenter
Implementation
Point polygonCenter(Polygon polygon) {
final _polygonCenterFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer<Void> Function(Pointer<Void>),
Pointer<Void> Function(Pointer<Void>)
>('navigine_sdk_flutter_GeometryUtils_polygonCenter__Polygon'));
final _polygonHandle = navigine_sdk_flutter_Polygon_ToFfi(polygon);
final __resultHandle = _polygonCenterFfi(_polygonHandle);
navigine_sdk_flutter_Polygon_ReleaseFfiHandle(_polygonHandle);
final _result = navigine_sdk_flutter_Point_FromFfi(__resultHandle);
navigine_sdk_flutter_Point_ReleaseFfiHandle(__resultHandle);
return _result;
}