linmath.h uses radians for everything -- adjusted contributed perspective function