I herped so much that I derped. Was calculating midpoint wrong. Worked for lhs, but not right.