/// <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; }
/// <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; }
public void Deconstruct(out Vector2 pos, out WindowId window) { pos = Position; window = Window; }