Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void InitializeRectangleFromPoints() { var points = new List<Vector2D>(new[] { new Vector2D(1.0f, 3.0f), new Vector2D(4.0f, 2.0f), new Vector2D(1.0f, 6.0f), new Vector2D(1.7f, 4.3f) }); var rectangle = Rectangle.FromPoints(points); Assert.AreEqual(new Rectangle(1.0f, 2.0f, 3.0f, 4.0f), rectangle); }
See Also