Click or drag to resize

BoxContains Method (BoundingBox, Boolean)

Determines whether a BoundingBox is inside this Box (strict inclusion, if strict is true). Invalid boxes contain nothing. Invalid bounding boxes are never contained.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool Contains(
	BoundingBox box,
	bool strict
)

Parameters

box
Type: Rhino.GeometryBoundingBox
BoundingBox to test.
strict
Type: SystemBoolean
If true, the BoundingBox needs to be strictly inside this Box, i.e. all corners of the BoundingBox are strictly inside this Box. If false, the BoundingBox can be touching this Box's boundary, i.e. all corners of the BoundingBox are non-strictly inside this Box.

Return Value

Type: Boolean
true if the box is (strictly, if strict is true) inside this Box. false if this Box or the BoundingBox are invalid.
See Also