Vector2D DirectionTo Method Delta Engine Documentation

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

public Vector2D DirectionTo(
	Vector2D other
)

Return Value

Type: Vector2D
Remarks

Tests: DeltaEngine.Tests.Datatypes.Vector2DTests
Examples

1 unit tests call DeltaEngine.Datatypes.Vector2D.DirectionTo(DeltaEngine.Datatypes.Vector2D)
[Test]
public void DirectionTo()
{
    Assert.AreEqual(new Vector2D(2, -6), v1.DirectionTo(v2));
}
See Also