Ellipse RadiusY Property Delta Engine Documentation

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

public float RadiusY { get; set; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Rendering2D.Shapes.Tests.EllipseTests
Examples

2 unit tests call DeltaEngine.Rendering2D.Shapes.Ellipse.RadiusY
[Test, CloseAfterFirstFrame, Timeout(2000)]
public void ChangeRadius()
{
    var ellipse = new Ellipse(Rectangle.One, Color.Red) { RadiusX = 0.2f, RadiusY = 0.4f };
    Assert.AreEqual(0.2f, ellipse.RadiusX);
    Assert.AreEqual(0.4f, ellipse.RadiusY);
}
[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