Compute the centroid of a given enumerable of entities

Namespace:  Cloudster.Samples.Vector2D
Assembly:  Cloudster.Samples.Vector2D.Role (in Cloudster.Samples.Vector2D.Role.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Vector2DEntity Compute(
	IEnumerable<Vector2DEntity> entities,
	out bool isNew
)
Visual Basic (Declaration)
Public Function Compute ( _
	entities As IEnumerable(Of Vector2DEntity), _
	<OutAttribute> ByRef isNew As Boolean _
) As Vector2DEntity
Visual C++
public:
virtual Vector2DEntity^ Compute(
	IEnumerable<Vector2DEntity^>^ entities, 
	[OutAttribute] bool% isNew
) sealed

Parameters

entities
Type: System.Collections.Generic..::.IEnumerable<(Of <(Vector2DEntity>)>)
The enumerable of entities of which to compute the centroid
isNew
Type: System..::.Boolean %
Always true.

Return Value

The computed centroid entity identifier

Implements

ICentroidComputer<(Of <(TEntity>)>)..::.Compute(IEnumerable<(Of <(TEntity>)>), Boolean%)

See Also