BoundingBox.Merge

Merge(Vector4)

Merge current bounding box with given point

public void Merge(Vector4 pt)
ParameterTypeDescription
ptVector4The point to be merged into the bounding box

Examples

The following code shows how to merge a point to bounding box.

var boundingBox = BoundingBox.Null;
boundingBox.Merge(new Vector4(1, 10, -1));
Console.WriteLine("Bounding box = " + boundingBox);

See Also


Merge(Vector3)

Merge current bounding box with given point

public void Merge(Vector3 pt)
ParameterTypeDescription
ptVector3The point to be merged into the bounding box

Examples

The following code shows how to merge a point to bounding box.

var boundingBox = BoundingBox.Null;
boundingBox.Merge(new Vector3(1, 10, -1));
Console.WriteLine("Bounding box = " + boundingBox);

See Also


Merge(double, double, double)

Merge current bounding box with given point

public void Merge(double x, double y, double z)
ParameterTypeDescription
xDoubleThe point to be merged into the bounding box
yDoubleThe point to be merged into the bounding box
zDoubleThe point to be merged into the bounding box

Examples

The following code shows how to merge a point to bounding box.

var boundingBox = BoundingBox.Null;
boundingBox.Merge(1, 10, -1);
Console.WriteLine("Bounding box = " + boundingBox);

See Also


Merge(BoundingBox)

Merges the new box into the current bounding box.

public void Merge(BoundingBox bb)
ParameterTypeDescription
bbBoundingBox

See Also