avoid making AIS theta calculations if they are immediately discarded
refactor ais drawing code from chcanv.cpp to ais.cpp
simplify ais rendering logic, and reduce redundant calculations
Merge pull request #147 from seandepagnier/ais_optimizations

AIS optimizations