A geometrical approach to solve the proximity of a point to an axisymmetric quadric in space