BoundingBox.BoundingBox
Contents
[
Hide
]BoundingBox(Vector3, Vector3)
Initialize a finite bounding box with given minimum and maximum corner
public BoundingBox(Vector3 minimum, Vector3 maximum)
| Parameter | Type | Description |
|---|---|---|
| minimum | Vector3 | The minimum corner |
| maximum | Vector3 | The maximum corner |
Examples
The following code shows how to construct a bounding box from minimum and maximum corners.
var minimum = new Vector3(0, 0, 0);
var maximum = new Vector3(10, 10, 10);
var boundingBox = new BoundingBox(minimum, maximum);
Console.WriteLine("Bounding box = " + boundingBox);
See Also
- struct Vector3
- struct BoundingBox
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
BoundingBox(double, double, double, double, double, double)
Initialize a finite bounding box with given minimum and maximum corner
public BoundingBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
| Parameter | Type | Description |
|---|---|---|
| minX | Double | The minimum corner’s X |
| minY | Double | The minimum corner’s Y |
| minZ | Double | The minimum corner’s Z |
| maxX | Double | The maximum corner’s X |
| maxY | Double | The maximum corner’s Y |
| maxZ | Double | The maximum corner’s Z |
Examples
The following code shows how to construct a bounding box from minimum and maximum corners.
var boundingBox = new BoundingBox(0, 0, 0, 10, 10, 10);
Console.WriteLine("Bounding box = " + boundingBox);
See Also
- struct BoundingBox
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D