Esempio n. 1
0
 private QuadTree(NodeCalculateCall x, NodeCalculateCall y, double x0, double y0, double x1, double y1)
 {
     this.xCall = x;
     this.yCall = y;
     this.tlX   = x0;
     this.tlY   = y0;
     this.brX   = x1;
     this.brY   = y1;
 }
Esempio n. 2
0
        public static QuadTree Create(NodeInfo[] nodes, NodeCalculateCall x, NodeCalculateCall y)
        {
            QuadTree tree = new QuadTree(x, y, Double.NaN, Double.NaN, Double.NaN, Double.NaN);

            if (nodes != null)
            {
                tree.AddAll(nodes);
            }
            return(tree);
        }
Esempio n. 3
0
 public ForceX Strength(NodeCalculateCall c)
 {
     strengthCall = c;
     return(this);
 }
Esempio n. 4
0
 public ForceX X(NodeCalculateCall c)
 {
     xCallback = c;
     return(this);
 }
Esempio n. 5
0
 public ForceY SetY(NodeCalculateCall c)
 {
     yCall = c;
     return(this);
 }
Esempio n. 6
0
 public ForceRadial Rradius(NodeCalculateCall c)
 {
     radiusCall = c;
     return(this);
 }
Esempio n. 7
0
 public ForceCollide Radius(NodeCalculateCall c)
 {
     radius = c;
     return this;
 }