fix: address review feedback for PR #1023

This commit is contained in:
Rudy Celekli committed 2026-10-14 14:17:39 -04:00
1 parent 632005d221
commit 3b08bd7487
3 files changed
+9 -8

No files matched your search

+2 -2
View File
@@ -2,6 +2,7 @@ import {
resolveCameraPose,
resolveCameraMove,
sampleCameraMove,
normalizeCameraLongitude,
} from './camera.js';
const DEFAULT_SHOT_DURATION_SEC = 4;
@@ -50,8 +51,7 @@ export function cameraAtProgress(fromCamera, toCamera, progress) {
? Number(source.lon)
: t === 1
? Number(target.lon)
: ((((lerpAngle(source.lon, target.lon) + 180) % 360) + 360) % 360) -
180,
: normalizeCameraLongitude(lerpAngle(source.lon, target.lon)),
alt: lerp(source.alt, target.alt),
heading: lerpAngle(source.heading, target.heading),
pitch: lerp(source.pitch, target.pitch),