Click or drag to resize

Clusters2DGetCenterPosition Method

Calculates the center position of one of the clusters.

Namespace:  TouchScript.Clusters
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public Vector2 GetCenterPosition(
	int id
)

Parameters

id
Type: SystemInt32
Cluster id. Either CLUSTER1 or CLUSTER2.

Return Value

Type: Vector2
Cluster's centroid position or INVALID_POSITION if cluster contains no pointers.
See Also