worldToView
worldToView(
wx,wy,cam):object
Defined in: src/modules/camera/camera.ts:96
World → view transform. vx / vy is the screen-pixel offset from the
viewport’s top-left corner (zoom- and offset-aware). A world point at the
camera centre returns (viewportW/2, viewportH/2).
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”object
vx:
number
vy:
number