private double Strength(int i) { if (strengthCall == null) { return(DEFAULT_STRENGTH); } return(strengthCall.Invoke(nodes[i])); }
private double SetX(int i) { if (xCallback == null) { return(0); } return(xCallback.Invoke(nodes[i])); }
private double Y(int i) { if (yCall == null) { return(0); } return(yCall.Invoke(nodes[i])); }
private double Radius(NodeInfo node) { if (radius == null) { return DEFAULT_RADIUS; } double r = radius.Invoke(node); if (r < 0) { return -r; } if (r == 0) { return DEFAULT_RADIUS; } return r; }
private double Radius(NodeInfo node) { if (radiusCall == null) { return(DEFAULT_RADIUS); } double r = radiusCall.Invoke(node); if (r < 0) { return(-r); } if (r == 0) { return(DEFAULT_RADIUS); } return(r); }