CCT.NUI.Core.Clustering.ClusterPrototype.SetCenter C# (CSharp) Method

SetCenter() public method

public SetCenter ( int x, int y, int z ) : void
x int
y int
z int
return void
        public void SetCenter(int x, int y, int z)
        {
            this.center = new Point(x, y, z);
        }

Usage Example

Esempio n. 1
0
 private void SetCenterRandomlyForEmptyCluster(ClusterPrototype cluster)
 {
     if (cluster.PointCount == 0)
     {
         cluster.SetCenter(this.random.Next(0, this.size.Width - 1), this.random.Next(0, this.size.Height - 1), this.random.Next((int)this.zRange.Min, (int)this.zRange.Max));
     }
 }
All Usage Examples Of CCT.NUI.Core.Clustering.ClusterPrototype::SetCenter