Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » PointsMassCenter

PointsMassCenter


Header: FIL.h
Namespace: fil
Module: FoundationLite

Computes the central point of the input points.

Syntax

C++
C#
 
void fil::PointsMassCenter
(
	const ftl::Array<fil::Point2D>& inPoints,
	fil::Point2D& outMassCenter
)

Parameters

Name Type Default Description
Input value inPoints const Array<Point2D>&
Output value outMassCenter Point2D&

Examples

PointsMassCenter performed on a set of 8 input points. The orange point is the result.

Errors

List of possible exceptions:

Error type Description
DomainError Input point array is empty in PointsMassCenter.