Click or drag to resize

Clusters2D Class

Represents a pool of points separated into two clusters.
Inheritance Hierarchy
SystemObject
  TouchScript.ClustersClusters2D

Namespace:  TouchScript.Clusters
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public sealed class Clusters2D

The Clusters2D type exposes the following members.

Constructors
  NameDescription
Public methodClusters2D
Initializes a new instance of the Clusters2D class.
Top
Properties
  NameDescription
Public propertyHasClusters
Indicates that this cluster instance has two valid clusters.
Public propertyMinPointsDistance
Gets or sets minimum distance in pixels between clusters to treat them as two separate clusters.
Public propertyPointsCount
Gets the total number of points in clusters represented by this object.
Top
Methods
  NameDescription
Public methodAddPoint
Adds a pointer to cluster.
Public methodAddPoints
Adds a list of pointers to cluster.
Public methodGetCenterPosition
Calculates the center position of one of the clusters.
Public methodGetPreviousCenterPosition
Calculates previous center position of one of the clusters.
Public methodInvalidate
Invalidates cluster state. Call this method to recalculate cluster properties.
Public methodRemoveAllPoints
Removes all pointers from cluster.
Public methodRemovePoint
Removes a pointer from cluster.
Public methodRemovePoints
Removes a list of pointers from cluster.
Top
Fields
  NameDescription
Public fieldStatic memberCLUSTER1
The first cluster.
Public fieldStatic memberCLUSTER2
The second cluster.
Top
See Also