Vector2DTests DistanceToSquared 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 DistanceToSquared()
Examples

[Test]
public void DistanceToSquared()
{
    var zero = new Vector2D();
    var v = new Vector2D(3, 4);
    Assert.AreEqual(25, zero.DistanceToSquared(v));
    Assert.AreEqual(0, zero.DistanceToSquared(zero));
}
See Also