mod - radians and getTangensEnd + unittests