Advertisement
pcwizz

slightly better match edge

Jun 2nd, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Edge.prototype.matchEdge = function (pEdge){
  2. //if the indexes match either way round
  3. return ((this.point0 == pEdge.point0 && this.point1 == pEdge.point1) || (this.point0 == pEdge.point1 && this.point1 == pEdge1.point0 && this.vector == false)) && this.weight == pEdge.weight;
  4. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement