Check whether the segment lies inside the surface (flat face)?

Hi guys! How to determine that the 3d segment (Geom_TrimmedCurve/TopoDS_Edge) lies on the plane of the flat face (TopoDS_Face) and is completely inside it (inside boundaries of face)?

I know how to do this mathematically, but maybe there is some ready-made tool like BRepClass3d_SolidClassifier, only for face or BRepClass_FaceClassifier, only for 3D points (not 2d)?

In fact, I need a ready-made tool for checking 3D point belongs a flat face in 3d with some tolerance, because to check segment, i will simply check both its points.