Vector3DTests Distance 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 Distance()
Examples

[Test]
public void Distance()
{
    var vector = new Vector3D(3, 4, 2);
    Assert.AreEqual(0, vector.Distance(vector));
    Assert.AreEqual(3, new Vector3D(1, 2, 3).Distance(vector));
    Assert.AreEqual(9, new Vector3D(1, 2, 3).DistanceSquared(vector));
}
See Also