Fix split view rotation sync direction
This commit is contained in:
@@ -1684,13 +1684,13 @@ function nearestEquivalentDegrees(angle: number, reference: number) {
|
|||||||
|
|
||||||
function floorplanRotationFromCameraAzimuth(azimuth: number, reference: number) {
|
function floorplanRotationFromCameraAzimuth(azimuth: number, reference: number) {
|
||||||
return nearestEquivalentDegrees(
|
return nearestEquivalentDegrees(
|
||||||
radiansToDegrees(azimuth) - FLOORPLAN_VIEW_ROTATION_DEG,
|
FLOORPLAN_VIEW_ROTATION_DEG - radiansToDegrees(azimuth),
|
||||||
reference,
|
reference,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function cameraAzimuthFromFloorplanRotation(rotationDeg: number) {
|
function cameraAzimuthFromFloorplanRotation(rotationDeg: number) {
|
||||||
return degreesToRadians(rotationDeg + FLOORPLAN_VIEW_ROTATION_DEG)
|
return degreesToRadians(FLOORPLAN_VIEW_ROTATION_DEG - rotationDeg)
|
||||||
}
|
}
|
||||||
|
|
||||||
function floorplanLocalToWorldPoint(
|
function floorplanLocalToWorldPoint(
|
||||||
|
|||||||
Reference in New Issue
Block a user