Skip to main content

Function: imageToWorldCoords()

imageToWorldCoords(imageId, imageCoords): Point3 | undefined

Given the imageId and a 2d coordinates on the image space with [0,0] being the top left corner of the top left pixel, and options which includes the imageId, it returns the 3d coordinates on the world space.

Parameters​

• imageId: string

The image id

• imageCoords: Point2

The 2d coordinates on the image

Returns​

Point3 | undefined

The 3d coordinates on the world.

Defined in​

packages/core/src/utilities/imageToWorldCoords.ts:14