rotate function needs to work with numbers

This commit is contained in:
David Tsay 2023-02-10 07:27:47 -08:00
parent a350c8e584
commit 2aa757c6b7

View File

@ -75,7 +75,7 @@ export default {
normalizedCameraAzimuth() {
return this.hasGimble
? rotate(this.cameraAzimuth)
: rotate(this.heading, -this.transformations?.rotation ?? 0);
: rotate(this.heading, -(this.transformations.rotation || 0));
},
// horizontal rotation from north in degrees
heading() {