MathExtensionsTests LineToLineIntersection Method Delta Engine Documentation

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

public void LineToLineIntersection()
Examples

[Test]
public void LineToLineIntersection()
{
    Assert.IsTrue(MathExtensions.IsLineIntersectingWith(-Vector2D.UnitX, Vector2D.UnitX,
        -Vector2D.UnitY, Vector2D.UnitY));
    Assert.IsFalse(MathExtensions.IsLineIntersectingWith(-Vector2D.UnitX, Vector2D.UnitX,
        new Vector2D(-1, 1), new Vector2D(1, 1)));
}
See Also