BoundingBox.BoundingBox

BoundingBox(Vector3, Vector3)

Initialize a finite bounding box with given minimum and maximum corner

public BoundingBox(Vector3 minimum, Vector3 maximum)
ParameterTypeDescription
minimumVector3The minimum corner
maximumVector3The 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


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)

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