BodyTests CreateEdgeFromPointArray 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 CreateEdgeFromPointArray()
Examples

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