MCPcopy
hub / github.com/CesiumGS/cesium / zoom2D

Function zoom2D

packages/engine/Source/Scene/ScreenSpaceCameraController.js:1010–1025  ·  view source on GitHub ↗
(controller, startPosition, movement)

Source from the content-addressed store, hash-verified

1008}
1009
1010function zoom2D(controller, startPosition, movement) {
1011 if (defined(movement.distance)) {
1012 movement = movement.distance;
1013 }
1014
1015 const scene = controller._scene;
1016 const camera = scene.camera;
1017
1018 handleZoom(
1019 controller,
1020 startPosition,
1021 movement,
1022 controller.zoomFactor,
1023 camera.getMagnitude(),
1024 );
1025}
1026
1027const twist2DStart = new Cartesian2();
1028const twist2DEnd = new Cartesian2();

Callers

nothing calls this directly

Calls 2

handleZoomFunction · 0.85
definedFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…