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

[Test]
public void Length()
{
    Assert.AreEqual(5, new Vector2D(-3, 4).Length);
    Assert.AreEqual(13, new Vector2D(5, -12).Length);
}
[Test]
public void LengthSquared()
{
    Assert.AreEqual(5, new Vector2D(1, -2).LengthSquared);
    Assert.AreEqual(8.5f, new Vector2D(-1.5f, 2.5f).LengthSquared);
}
See Also