Back to FabImage Library Lite website

You are here: Start » Path » Path Features » PathMassCenter_OrNil

PathMassCenter_OrNil


Header: FIL.h
Namespace: fil

Computes the average of the path points (all, not only characteristic ones); returns NIL if the path is empty.

Syntax

void fil::PathMassCenter_OrNil
(
	const fil::Path& inPath,
	ftl::Conditional<fil::Point2D>& outMassCenter
)

Parameters

Name Type Default Description
Input value
inPath const Path& Input path
Output value
outMassCenter Conditional<Point2D>&