https://github.com/vrld/hump/blob/08937cc0ecf72d1a964a8de6cd552c5e136bf0d4/vector.lua#L118 Typically the arguments to atan2 are y first, and that is how it's done in the corresponding function in vector-light, so I assume this is a mistake.