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