Advertisement
pcwizz

looks more readable match edge

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