import { GeoCoordinates , Projection } from "@here/harp-geoutils" ; import * as THREE from "three" ; import { Tile } from "../Tile" ; internal hidden export interface TileCorners { se : THREE . Vector3 ; sw : THREE . Vector3 ; ne : THREE . Vector3 ; nw : THREE . Vector3 ; } param tile param projection returns internal hidden export function projectTilePlaneCorners ( tile , projection ) { const { east , west , north , south } = tile . geoBox ; const sw = projection . projectPoint ( new GeoCoordinates ( south , west ) , new THREE . Vector3 ( ) ) ; const se = projection . projectPoint ( new GeoCoordinates ( south , east ) , new THREE . Vector3 ( ) ) ; const nw = projection . projectPoint ( new GeoCoordinates ( north , west ) , new THREE . Vector3 ( ) ) ; const ne = projection . projectPoint ( new GeoCoordinates ( north , east ) , new THREE . Vector3 ( ) ) ; return { sw , se , nw , ne } ; }