BoundingBoxTests MergeTwoBoundingBoxes Method Delta Engine Documentation

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

public void MergeTwoBoundingBoxes()
Examples

[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