The curvatures of a wavefront along a ray in laterally inhomogenous three-dimensional velocity media separated by curved first-order interfaces can be computed by a system of equations that includes a Riccati-type differential matrix equation. This has a simple analytic solution along circular raypaths in media of constant velocity gradients.