MCPcopy Create free account
hub / github.com/city-super/Octree-GS / snapToCamera

Method snapToCamera

SIBR_viewers/src/core/view/InteractiveCameraHandler.cpp:336–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334 }
335
336 void InteractiveCameraHandler::snapToCamera(const int i) {
337 if (!_interpPath.empty()) {
338 unsigned int nearestCam = (i == -1 ? findNearestCamera(_interpPath) : i);
339 nearestCam = sibr::clamp(nearestCam, (unsigned int)(0), (unsigned int)(_interpPath.size() - 1));
340 fromCamera(*_interpPath[nearestCam], true, false);
341 }
342 }
343
344 void InteractiveCameraHandler::setFPSCameraSpeed(const float speed) {
345 _fpsCamera.setSpeed(speed);

Callers

nothing calls this directly

Calls 3

clampFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected