Class NormalizedDeviceCoordinates
Represents an operator that converts each point in the sequence from window client coordinates into normalized device coordinates.
public class NormalizedDeviceCoordinates : Transform<EventPattern<INativeWindow, MouseEventArgs>, Vector2>
- Inheritance
-
NormalizedDeviceCoordinates
- Inherited Members
Methods
Process(IObservable<EventPattern<INativeWindow, MouseButtonEventArgs>>)
Converts each point in an observable sequence of mouse button event data from window client coordinates into normalized device coordinates.
public IObservable<Vector2> Process(IObservable<EventPattern<INativeWindow, MouseButtonEventArgs>> source)
Parameters
source
IObservable<EventPattern<INativeWindow, MouseButtonEventArgs>>A sequence of events containing MouseButtonEventArgs event data.
Returns
- IObservable<Vector2>
A sequence of Vector2 values representing the normalized device coordinates corresponding to the window client location stored in the event data.
Process(IObservable<EventPattern<INativeWindow, MouseEventArgs>>)
Converts each point in an observable sequence of mouse device event data from window client coordinates into normalized device coordinates.
public override IObservable<Vector2> Process(IObservable<EventPattern<INativeWindow, MouseEventArgs>> source)
Parameters
source
IObservable<EventPattern<INativeWindow, MouseEventArgs>>A sequence of events containing MouseEventArgs event data.
Returns
- IObservable<Vector2>
A sequence of Vector2 values representing the normalized device coordinates corresponding to the window client location stored in the event data.
Process(IObservable<EventPattern<INativeWindow, MouseMoveEventArgs>>)
Converts each point in an observable sequence of mouse move event data from window client coordinates into normalized device coordinates.
public IObservable<Vector2> Process(IObservable<EventPattern<INativeWindow, MouseMoveEventArgs>> source)
Parameters
source
IObservable<EventPattern<INativeWindow, MouseMoveEventArgs>>A sequence of events containing MouseMoveEventArgs event data.
Returns
- IObservable<Vector2>
A sequence of Vector2 values representing the normalized device coordinates corresponding to the window client location stored in the event data.
Process(IObservable<EventPattern<INativeWindow, MouseWheelEventArgs>>)
Converts each point in an observable sequence of mouse wheel event data from window client coordinates into normalized device coordinates.
public IObservable<Vector2> Process(IObservable<EventPattern<INativeWindow, MouseWheelEventArgs>> source)
Parameters
source
IObservable<EventPattern<INativeWindow, MouseWheelEventArgs>>A sequence of events containing MouseWheelEventArgs event data.
Returns
- IObservable<Vector2>
A sequence of Vector2 values representing the normalized device coordinates corresponding to the window client location stored in the event data.