Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.RectangleTests
1 unit tests call DeltaEngine.Datatypes.Rectangle.IsNearlyEqual(DeltaEngine.Datatypes.Rectangle)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- other
- Type: DeltaEngine.Datatypes Rectangle
Return Value
Type: BooleanRemarks
Examples
[Test] public void GetRotatedRectangleCornersWith180DegreesRotation() { var points = new Rectangle(1, 1, 1, 1).GetRotatedRectangleCorners(Vector2D.Zero, 180); Assert.IsTrue(points[0].IsNearlyEqual(-Vector2D.One)); Assert.IsTrue(points[1].IsNearlyEqual(-new Vector2D(1, 2))); Assert.IsTrue(points[2].IsNearlyEqual(-new Vector2D(2, 2))); }
See Also