Rectangle Aspect Property Delta Engine Documentation

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

public float Aspect { get; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Datatypes.RectangleTests
Examples

1 unit tests call DeltaEngine.Datatypes.Rectangle.Aspect
[Test]
public void Aspect()
{
    Assert.AreEqual(0.5f, new Rectangle(0, 0, 1, 2).Aspect);
    Assert.AreEqual(2.0f, new Rectangle(0, 0, 4, 2).Aspect);
}
See Also