import { estimate } from './estimate' ; import { refineEstimate } from './refine-estimate' ; export class Estimator { projectionTransform : any ; constructor ( projectionTransform ) { this . projectionTransform = projectionTransform ; } estimate ( { screenCoords , worldCoords } ) { const modelViewTransform = estimate ( { screenCoords , worldCoords , projectionTransform : this . projectionTransform } ) ; return modelViewTransform ; } refineEstimate ( { initialModelViewTransform , worldCoords , screenCoords } ) { const updatedModelViewTransform = refineEstimate ( { initialModelViewTransform , worldCoords , screenCoords , projectionTransform : this . projectionTransform } ) ; return updatedModelViewTransform ; } }