Box.contains_points

Box.contains_points(points, tol=1e-06)[source]

Verify if the box contains the given points.

Parameters:
pointslist[[float, float, float]] | list[compas.geometry.Point]

A list of points.

tolfloat, optional

The tolerance for the point containment check.

Returns:
list[bool]

See also

contains_point

Examples

>>> from compas.geometry import Point, Box
>>> box = Box(Frame.worldXY(), 2.0, 2.0, 2.0)
>>> points = [Point(0.0, 0.0, 0.0), Point(1.0, 1.0, 1.0)]
>>> results = box.contains_points(points)
>>> all(results)
True