BoundingBox Merge Method Delta Engine Documentation

Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Merge(
	BoundingBox otherBox
)
Remarks

Tests: DeltaEngine.Tests.Datatypes.BoundingBoxTests
Examples

1 unit tests call DeltaEngine.Datatypes.BoundingBox.Merge(DeltaEngine.Datatypes.BoundingBox)
[Test]
public void MergeTwoBoundingBoxes()
{
    var boxA = new BoundingBox(Vector3D.Zero, Vector3D.Zero);
    boxA.Merge(new BoundingBox(-Vector3D.One, Vector3D.One));
    Assert.AreEqual(boxA, new BoundingBox(-Vector3D.One, Vector3D.One));
    boxA.Merge(new BoundingBox(Vector3D.Zero, Vector3D.Zero));
    Assert.AreEqual(boxA, new BoundingBox(-Vector3D.One, Vector3D.One));
}
See Also