BodyTests CreateEdgeFromTwoSinglePoints Method Delta Engine Documentation

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

public void CreateEdgeFromTwoSinglePoints()
Examples

[Test, CloseAfterFirstFrame]
public void CreateEdgeFromTwoSinglePoints()
{
    Vector2D[] edges = { Vector2D.Zero, Vector2D.Half };
    var edge = physics.CreateEdge(Vector2D.Zero, Vector2D.Half);
    Assert.AreEqual(edges, edge.LineVertices);
}
See Also