EllipseTests ManuallySetTheRadius Method Delta Engine Documentation

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

public void ManuallySetTheRadius()
Examples

[Test]
public void ManuallySetTheRadius()
{
    const float OriginalRadius = 0.2f;
    const float NewRadius = 0.4f;
    var ellipse = new Ellipse(Vector2D.Half, OriginalRadius, OriginalRadius, Color.Red);
    Assert.AreEqual(OriginalRadius, ellipse.RadiusX);
    Assert.AreEqual(OriginalRadius, ellipse.RadiusY);
    ellipse.Radius = NewRadius;
    Assert.AreEqual(NewRadius, ellipse.RadiusX);
    Assert.AreEqual(NewRadius, ellipse.RadiusY);
}
See Also