public TriangulatorNode(NodeAbstract node, int id) { this.x = node.x; this.y = node.y; this.z = node.z; this.id = id; }
public NodeAbstract GetOtherNode(NodeAbstract from) { if (_a == from) { return(_b); } if (_b == from) { return(_a); } UnityEngine.Debug.LogError("node not presented"); return(null); }
public bool Match(NodeAbstract a, NodeAbstract b) { return((a == this.a && b == this.b) || (a == this.b && b == this.a)); }
public bool Contains(NodeAbstract node) { return(ReferenceEquals(_a, node) | ReferenceEquals(_b, node)); }
public EdgeAbstract(NodeAbstract a, NodeAbstract b) { _a = a; _b = b; }
public EdgeSimple(NodeAbstract a, NodeAbstract b) : base(a, b) { }