How can I compute programatically the distance between a point and a quadric (a surface defined by a quadratic polynomial, for example a sphere, a cone, or a hyperboloid)?
How can compute that distance after applying transformation/rotation to the quaternion?