Feature detection:
the math
W