BoundingBoxTests CreateBoundingBoxFromCenter 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 CreateBoundingBoxFromCenter()
Examples

[Test]
public void CreateBoundingBoxFromCenter()
{
    var box = BoundingBox.FromCenter(Vector3D.Zero, Vector3D.One);
    Assert.AreEqual(-Vector3D.One / 2, box.Min);
    Assert.AreEqual(Vector3D.One / 2, box.Max);
}
See Also