Function: getWorldWidthAndHeightFromCorners()
getWorldWidthAndHeightFromCorners(
viewPlaneNormal,viewUp,topLeftWorld,bottomRightWorld):object
Given two world positions and an orthogonal view to an imageVolume defined
by a viewPlaneNormal and a viewUp, get the width and height in world coordinates
of the rectangle defined by the two points. The implementation works both with orthogonal
non-orthogonal rectangles.
Parameters
• viewPlaneNormal: Point3
The normal of the view.
• viewUp: Point3
The up direction of the view.
• topLeftWorld: Point3
The first world position.
• bottomRightWorld: Point3
The second world position.
Returns
object
The worldWidth and worldHeight.
worldHeight
worldHeight:
number
worldWidth
worldWidth:
number
Defined in
tools/src/utilities/planar/getWorldWidthAndHeightFromCorners.ts:18