If multiple curves are in the Brep return 1 else return 0

I wan’t to find bigest scale in my shapes into another shape. I don’t know how I can define my shape is in the Brep.

Point in Breps component most likely, then test for multiple inclusions. impossible to tell with no additional info.

don’t think about Brep. use curve.like this “if small rectangle is in the big rectangle return 1 else 0” . how can I say “is in”

I don’t want to use 3D shape.

what defines in? If they are touching or totally contained? Are they in the same plane?

yes it’s 2D.
I want boundry box in 2D

Rhino.Geometry.PlanarClosedCurveRelationship
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_PlanarClosedCurveRelationship.htm