Is there any good way to judge whether the rectangle is inside the point cloud?
The point cloud can define a polygon.
After you define a polygon you can use the point inside polygon test on the four corners of the rectangle and see if all the points are inside the polygon.

The point in polygon test.