BoundingSphere IsColliding Method Delta Engine Documentation

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

public bool IsColliding(
	BoundingSphere other
)

Return Value

Type: Boolean
Remarks

Tests: DeltaEngine.Tests.Datatypes.BoundingSphereTests
Examples

1 unit tests call DeltaEngine.Datatypes.BoundingSphere.IsColliding(DeltaEngine.Datatypes.BoundingSphere)
[Test]
public void IntersectBoundingSphereWithBoundingSphere()
{
    var sphere1 = new BoundingSphere(Vector3D.Zero, 1.0f);
    var sphere2 = new BoundingSphere(Vector3D.One, 1.0f);
    Assert.IsTrue(sphere1.IsColliding(sphere2));
}
See Also