GlobeAnimator Class

Animates the transition of a Viewport to view a location on the Earth. The animation traces a flight path from the viewport's current Frustum to the destination. The duration of the animation varies based on the distance traversed.

see Viewport.animateFlyoverToGlobalLocation.

extensions

Implements

Methods

Name Description
constructor(viewport: ScreenViewport, destination: GlobalLocation, afterLanding: Frustum, afterFocus: number): GlobeAnimator Protected    
_moveFixToFraction(fract: number, interpolator: SmoothTransformBetweenFrusta): boolean Protected Apply a SmoothTransformBetweenFrusta interpolator to the view based on a fraction.  
_moveFlightToFraction(fraction: number): boolean Protected    
create(viewport: ScreenViewport, destination: GlobalLocation): Promise<undefined | GlobeAnimator> Static Create an animator to transition to the specified destination.  

Properties

Name Type Description
_afterFocusDistance Protected number    
_afterLanding Protected Frustum    
_columbusLine Protected Point3d[]    
_ellipsoidArc Protected undefined | Arc3d    
_endHeight Protected undefined | number    
_endLocation Protected GlobalLocation    
_fixLandingFraction ProtectedReadonly number    
_fixLandingInterpolator Protected undefined | SmoothTransformBetweenFrusta    
_fixTakeoffFraction Protected undefined | number    
_fixTakeoffInterpolator Protected undefined | SmoothTransformBetweenFrusta    
_flightLength Protected number    
_flightTweens Protected Tweens    
_midHeight Protected undefined | number    
_scratchFrustum ProtectedReadonly Frustum    
_startCartographic Protected undefined | Cartographic    
_startHeight Protected undefined | number    
_viewport Protected ScreenViewport    

Defined in

Last Updated: 30 November, 2023