rays.pyx is currently uncommented and it would be helpful to at least to point which equations are being used.