@@ -252,7 +252,7 @@ define([
252252 lookAt . position . longitude += forwardDegrees * sinHeading + sideDegrees * cosHeading ;
253253 this . lastPoint . set ( tx , ty ) ;
254254 this . applyLookAtLimits ( lookAt ) ;
255- this . wwd . camera . setFromLookAt ( lookAt ) ;
255+ this . wwd . cameraFromLookAt ( lookAt ) ;
256256 this . wwd . redraw ( ) ;
257257 }
258258 } ;
@@ -295,7 +295,7 @@ define([
295295
296296 // Transform the original view's modelview matrix to account for the gesture's change.
297297 var modelview = Matrix . fromIdentity ( ) ;
298- lookAt . computeViewingTransform ( globe , modelview ) ;
298+ this . wwd . lookAtToViewingTransform ( lookAt , modelview ) ;
299299 modelview . multiplyByTranslation ( point2 [ 0 ] - point1 [ 0 ] , point2 [ 1 ] - point1 [ 1 ] , point2 [ 2 ] - point1 [ 2 ] ) ;
300300
301301 // Compute the globe point at the screen center from the perspective of the transformed view.
@@ -314,7 +314,7 @@ define([
314314 lookAt . tilt = params . tilt ;
315315 lookAt . roll = params . roll ;
316316 this . applyLookAtLimits ( lookAt ) ;
317- this . wwd . camera . setFromLookAt ( lookAt ) ;
317+ this . wwd . cameraFromLookAt ( lookAt ) ;
318318 this . wwd . redraw ( ) ;
319319 }
320320 } ;
@@ -338,7 +338,7 @@ define([
338338 lookAt . heading = this . beginLookAt . heading + headingDegrees ;
339339 lookAt . tilt = this . beginLookAt . tilt + tiltDegrees ;
340340 this . applyLookAtLimits ( lookAt ) ;
341- this . wwd . camera . setFromLookAt ( lookAt ) ;
341+ this . wwd . cameraFromLookAt ( lookAt ) ;
342342 this . wwd . redraw ( ) ;
343343 }
344344 } ;
@@ -357,7 +357,7 @@ define([
357357 var lookAt = this . lookAt ;
358358 lookAt . range = this . beginLookAt . range / scale ;
359359 this . applyLookAtLimits ( lookAt ) ;
360- this . wwd . camera . setFromLookAt ( lookAt ) ;
360+ this . wwd . cameraFromLookAt ( lookAt ) ;
361361 this . wwd . redraw ( ) ;
362362 }
363363 }
@@ -379,7 +379,7 @@ define([
379379 lookAt . heading -= rotation - this . lastRotation ;
380380 this . lastRotation = rotation ;
381381 this . applyLookAtLimits ( lookAt ) ;
382- this . wwd . camera . setFromLookAt ( lookAt ) ;
382+ this . wwd . cameraFromLookAt ( lookAt ) ;
383383 this . wwd . redraw ( ) ;
384384 }
385385 } ;
@@ -399,14 +399,14 @@ define([
399399 var lookAt = this . lookAt ;
400400 lookAt . tilt = this . beginTilt + tiltDegrees ;
401401 this . applyLookAtLimits ( lookAt ) ;
402- this . wwd . camera . setFromLookAt ( lookAt ) ;
402+ this . wwd . cameraFromLookAt ( lookAt ) ;
403403 this . wwd . redraw ( ) ;
404404 }
405405 } ;
406406
407407 // Intentionally not documented.
408408 BasicWorldWindowController . prototype . handleWheelEvent = function ( event ) {
409- var lookAt = this . wwd . camera . getAsLookAt ( this . lookAt ) ;
409+ var lookAt = this . wwd . cameraAsLookAt ( this . lookAt ) ;
410410 // Normalize the wheel delta based on the wheel delta mode. This produces a roughly consistent delta across
411411 // browsers and input devices.
412412 var normalizedDelta ;
@@ -426,7 +426,7 @@ define([
426426 // Apply the scale to this view's properties.
427427 lookAt . range *= scale ;
428428 this . applyLookAtLimits ( lookAt ) ;
429- this . wwd . camera . setFromLookAt ( lookAt ) ;
429+ this . wwd . cameraFromLookAt ( lookAt ) ;
430430 this . wwd . redraw ( ) ;
431431 } ;
432432
@@ -470,9 +470,9 @@ define([
470470 * @ignore
471471 */
472472 BasicWorldWindowController . prototype . applyLimits = function ( ) {
473- var lookAt = this . wwd . camera . getAsLookAt ( this . lookAt ) ;
473+ var lookAt = this . wwd . cameraAsLookAt ( this . lookAt ) ;
474474 this . applyLookAtLimits ( lookAt ) ;
475- this . wwd . camera . setFromLookAt ( lookAt ) ;
475+ this . wwd . cameraFromLookAt ( lookAt ) ;
476476 } ;
477477
478478 /**
@@ -481,7 +481,7 @@ define([
481481 * @ignore
482482 */
483483 BasicWorldWindowController . prototype . gestureDidBegin = function ( ) {
484- this . wwd . camera . getAsLookAt ( this . beginLookAt ) ;
484+ this . wwd . cameraAsLookAt ( this . beginLookAt ) ;
485485 this . lookAt . copy ( this . beginLookAt ) ;
486486 } ;
487487
0 commit comments