Grid3DTests RenderGridWithCenterInOtherPosition Method Delta Engine Documentation

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

public void RenderGridWithCenterInOtherPosition()
Examples

[Test]
public void RenderGridWithCenterInOtherPosition()
{
    var grid = new Grid3D(new Vector3D(5, 5, 0), new Size(1));
    new Line3D(Vector3D.Zero, Vector3D.UnitX, Color.Red);
    new Line3D(Vector3D.Zero, Vector3D.UnitY, Color.Green);
    new Line3D(Vector3D.Zero, Vector3D.UnitZ, Color.Blue);
    AssertQuadraticGrid(1, grid);
    new Line3D(new Vector3D(5, 5, 0), new Vector3D(5, 5, 1), Color.Blue);
    foreach (var line in grid.lines)
        Assert.IsTrue(line.IsActive);
    Assert.AreEqual(new Vector3D(5, 5, 0), grid.Position);
}
See Also