Skip to main content

Function: getViewportImageCornersInWorld()

getViewportImageCornersInWorld(viewport): Point3[]

Given a viewport, return the corners of the image in the viewport in world coordinates. Note that this is different than the corners of the canvas in world coordinates since an image can be zoomed out and the canvas can be larger than the image; hence, the corners of the canvas in world coordinates will be outside the image.

Parameters

viewport: VolumeViewport | IStackViewport

The viewport to get the corners of.

Returns

Point3[]

The corners of the image in the viewport in world coordinates.

Defined in

packages/core/src/utilities/getViewportImageCornersInWorld.ts:18