Clusters2DGetPreviousCenterPosition Method |
Calculates previous center position of one of the clusters.
Namespace:
TouchScript.Clusters
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public Vector2 GetPreviousCenterPosition(
int id
)
Parameters
- id
- Type: SystemInt32
Cluster id. Either CLUSTER1 or CLUSTER2.
Return Value
Type:
Vector2 Cluster's centroid previous position or
INVALID_POSITION if cluster contains no pointers.
See Also