Advertisement
pcwizz

possibly better with de morgans law

Jun 2nd, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.36 KB | None | 0 0
  1. Edge.prototype.matchEdge = function (pEdge){
  2.     //if the indexes match either way round
  3.     //(A+B).C+D+E+F = !(!A.!B).C+D+E+F = A.B.C+D+E+F
  4.     return
  5.         this.point0 != pEdge.point0 ||//A
  6.         this.point1 != pEdge.point1 ||//B
  7.         this.point0 == pEdge.point1 &&//C
  8.         this.point1 == pEdge1.point0 &&//D
  9.         this.vector == false && //E
  10.         this.weight == pEdge.weight;//F
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement