getLocation
Returns the location of the specified pixel coordinates.
Example
Usage
const coordinates = {
x: 100,
y: 50
};
const coordinatesLocation = viewer2d.getLocation(coordinates);Parameters
coordinates
Coordinates in pixels to get location.
Type | Required |
|---|---|
Vector2 | Yes |
Return Value
Location of the coordinates.