private Vector3 KnotCenter(Knot knot) { Grid nodeMap = new Grid (screen: this); nodeMap.Knot = knot; nodeMap.Update (); Vector3 center = Vector3.Zero; foreach (Edge edge in knot) { center += nodeMap.NodeBeforeEdge (edge); } center /= knot.Count (); return center; }
public RectangleMap(Grid nodeMap) { NodeMap = nodeMap; }