Namespace: DeltaEngine.ScreenSpaces
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.ScreenSpaces.PixelScreenSpaceTests
1 unit tests call DeltaEngine.ScreenSpaces.PixelScreenSpace.ToPixelSpace(DeltaEngine.Datatypes.Vector2D)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- currentScreenSpacePosition
- Type: DeltaEngine.Datatypes Vector2D
Return Value
Type: Vector2DRemarks
Examples
[Test] public void ToPixelSpaceAndFromPixelSpace() { var pixelScreen = new PixelScreenSpace(window); Assert.AreEqual(pixelScreen.TopLeft, pixelScreen.ToPixelSpace(pixelScreen.TopLeft)); Assert.AreEqual(pixelScreen.BottomRight, pixelScreen.ToPixelSpace(pixelScreen.BottomRight)); Assert.AreEqual(Size.Zero, pixelScreen.ToPixelSpace(Size.Zero)); Assert.AreEqual(Size.One, pixelScreen.ToPixelSpace(Size.One)); window.CloseAfterFrame(); }
See Also