MCPcopy
hub / github.com/KilledByAPixel/LittleJS / getCameraSize

Function getCameraSize

src/engineDraw.js:1085–1085  ·  view source on GitHub ↗

Get the size of the camera window in world space * @return {Vector2} * @memberof Draw

()

Source from the content-addressed store, hash-verified

1083 * @return {Vector2}
1084 * @memberof Draw */
1085function getCameraSize() { return mainCanvasSize.scale(1/cameraScale); }
1086
1087/** Check if a box, point, or circle is on screen with a circle test
1088 * If size is a Vector2, uses the length as diameter

Callers 4

debugRenderFunction · 0.85
gameRenderFunction · 0.85
updateMethod · 0.85
gameRenderFunction · 0.85

Calls 1

scaleMethod · 0.45

Tested by

no test coverage detected