test/globe/ProjectionWgs84.test.js
/**
         * Computes the north vector in the local geodetic plane. Taken from Coordinate Systems in Geodesy:
         * http://www2.unb.ca/gge/Pubs/LN16.pdf
         */
Computes the north vector in the local geodetic plane.
Computes the north vector in the local geodetic plane .
function wgs84GeodeticNorth(latitude, longitude) {
            var latRad = latitude * Math.PI / 180;
            var lonRad = longitude * Math.PI / 180;
            return vec3FromEcef(
                -Math.sin(latRad) * Math.cos(lonRad),
                -Math.sin(latRad) * Math.sin(lonRad),
                Math.cos(latRad)).normalize();
        }
function wgs84GeodeticNorth ( latitude , longitude ) { var latRad = latitude * Math . PI / 180 ; var lonRad = longitude * Math . PI / 180 ; return vec3FromEcef ( - Math . sin ( latRad ) * Math . cos ( lonRad ) , - Math . sin ( latRad ) * Math . sin ( lonRad ) , Math . cos ( latRad ) ) . normalize ( ) ; }
Computes the north vector in the local geodetic plane.
Computes the north vector in the local geodetic plane .