(pt)
| 176 | } |
| 177 | |
| 178 | function onlyConstrainedPoint(pt) { |
| 179 | if(pt[0] < xEdge0 || pt[0] > xEdge1 || pt[1] < yEdge0 || pt[1] > yEdge1) { |
| 180 | return [constrain(pt[0], xEdge0, xEdge1), constrain(pt[1], yEdge0, yEdge1)]; |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | function sameEdge(pt1, pt2) { |
| 185 | if(pt1[0] === pt2[0] && (pt1[0] === xEdge0 || pt1[0] === xEdge1)) return true; |
no test coverage detected
searching dependent graphs…