Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.Vector2DTests
1 unit tests call DeltaEngine.Datatypes.Vector2D.DistanceToSquared(DeltaEngine.Datatypes.Vector2D)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- other
- Type: DeltaEngine.Datatypes Vector2D
Return Value
Type: SingleRemarks
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