added sphere intersect method and quadratic solve method