BoundingBox GetHashCode Method Delta Engine Documentation

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

public override int GetHashCode()

Return Value

Type: Int32
Remarks

Tests: DeltaEngine.Tests.Datatypes.BoundingBoxTests
Examples

1 unit tests call DeltaEngine.Datatypes.BoundingBox.GetHashCode
[Test]
public void GetHashCodeViaDictionary()
{
    var box = new BoundingBox(Vector3D.Zero, Vector3D.One);
    var equalBox = new BoundingBox(Vector3D.Zero, Vector3D.One);
    Assert.AreEqual(box.GetHashCode(), equalBox.GetHashCode());
    var otherBox = new BoundingBox(-Vector3D.One, Vector3D.One);
    Assert.AreNotEqual(box.GetHashCode(), otherBox.GetHashCode());
}
See Also