Browse Source

Add center pointing and HFOV to hot spot debug.

pull/86/head
Matthew Petroff 9 years ago
parent
commit
2e7f8365d3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/js/pannellum.js

+ 2
- 1
src/js/pannellum.js View File

@@ -482,7 +482,8 @@ function onDocumentMouseDown(event) {
var root = Math.sqrt(x*x + a*a);
var pitch = Math.atan((y * c + focal * s) / root) * 180 / Math.PI;
var yaw = Math.atan2(x / root, a / root) * 180 / Math.PI + config.yaw;
console.log('Pitch: ' + pitch + ', Yaw: ' + yaw);
console.log('Pitch: ' + pitch + ', Yaw: ' + yaw + ', Center Pitch: ' +
config.pitch + ', Center Yaw: ' + config.yaw + ', HFOV: ' + config.hfov);
}
// Turn off auto-rotation if enabled


Loading…
Cancel
Save