ContainsPoint
bool ContainsPoint(this BoundingBoxXYZ boundingBox, XYZ point)Tests whether a point lies inside (inclusive) the axis-aligned bounding box.
Parameters
- boundingBoxBoundingBoxXYZ
The bounding box to test against.
- pointXYZ
The point to test.
Returns: True if the point lies inside or on the boundary of the bounding box; otherwise false.
Example
XYZ p = new XYZ(5, 5, 0);bool inside = box.ContainsPoint(p);