added class Ray, moved inlines into header