Added methods to check if against an edge.

#1626
closes #2658
Merge remote-tracking branch 'origin/master'