flywave-mapview.mapview.getnormalizedscreencoordinates
Home > @flywave/flywave-mapview > MapView > getNormalizedScreenCoordinates
MapView.getNormalizedScreenCoordinates() method
Returns the normalized screen coordinates from the given pixel position.
Signature:
getNormalizedScreenCoordinates(x: number, y: number): THREE.Vector2;
Parameters
Parameter | Type | Description |
|---|---|---|
x | number | The X position in css/client coordinates (without applied display ratio). |
y | number | The Y position in css/client coordinates (without applied display ratio). |
Returns:
THREE.Vector2