Minimal distance from 3D ray to TopoDS_Edge

Hi guys, how to determinate minimal distance from 3D day with origin and direction to any TopoDS_Edge?