WIP: computing segment and angle on the GPU to account for anisotropic scaling.