You are here: Start » AVL.NET » Function Reference » Region » Region Features » AVL.RegionMassCenter_OrNil

AVL.RegionMassCenter_OrNil

Computes a point with coordinates equal to the average coordinates of the region's pixels; returns NIL if the region is empty.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RegionMassCenter_OrNil
(
	AvlNet.Region inRegion,
	out AvlNet.Point2D? outMassCenter,
	NullableRef<NullableValue<int>> outArea
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
outMassCenterAvlNet.Point2D?
outAreaAvlNet.NullableRef<AvlNet.NullableValue<int>> Can be null to skip this parameter calculation.

Function Overrides

See also