示例#1
0
 /// <summary>
 ///     Constructs a new instance of <c>ScreenCoordinates</c>.
 /// </summary>
 /// <param name="position">Position on the rendering screen.</param>
 /// <param name="window">Window for the coordinates.</param>
 public ScreenCoordinates(Vector2 position, WindowId window)
 {
     Position = position;
     Window   = window;
 }
示例#2
0
 /// <summary>
 ///     Constructs a new instance of <c>ScreenCoordinates</c>.
 /// </summary>
 /// <param name="x">X axis of a position on the screen.</param>
 /// <param name="y">Y axis of a position on the screen.</param>
 /// <param name="window">Window for the coordinates.</param>
 public ScreenCoordinates(float x, float y, WindowId window)
 {
     Position = new Vector2(x, y);
     Window   = window;
 }
示例#3
0
 public void Deconstruct(out Vector2 pos, out WindowId window)
 {
     pos    = Position;
     window = Window;
 }