contains method
contains(self, p)
Check if the point p is inside the bounding box
Returns
True if the point is inside the bounding box
def contains(self, p):
...
Parameter | Type | Description |
---|---|---|
p | Vector3 | The point to test |
Example
The following code shows how to check if a point is inside the bounding box.
from aspose.threed.utilities import BoundingBox, Vector3
boundingBox = BoundingBox(0, 0, 0, 10, 10, 10)
pt = Vector3(4, 4, 4)
print("Bounding box overlaps = " + str(boundingBox.contains(pt)))
See Also
- module
aspose.threed.utilities
- class
BoundingBox