Use Math::Trig functions instead of manually calculate PI and
do degrees to radians conversion