示例#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;
 }
示例#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);
        }
示例#3
0
文件: ForceX.cs 项目: dfengwji/unity
 public ForceX Strength(NodeCalculateCall c)
 {
     strengthCall = c;
     return(this);
 }
示例#4
0
文件: ForceX.cs 项目: dfengwji/unity
 public ForceX X(NodeCalculateCall c)
 {
     xCallback = c;
     return(this);
 }
示例#5
0
文件: ForceY.cs 项目: dfengwji/unity
 public ForceY SetY(NodeCalculateCall c)
 {
     yCall = c;
     return(this);
 }
示例#6
0
 public ForceRadial Rradius(NodeCalculateCall c)
 {
     radiusCall = c;
     return(this);
 }
示例#7
0
 public ForceCollide Radius(NodeCalculateCall c)
 {
     radius = c;
     return this;
 }