Vector2D LengthSquared Property Delta Engine Documentation

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

public float LengthSquared { get; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Datatypes.Vector2DTests
Examples

1 unit tests call DeltaEngine.Datatypes.Vector2D.LengthSquared
[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