This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aeCameraParser = function () { | |
"use strict"; | |
var cameraAnimation = {}; | |
var kLines = "<1br />"; | |
var kSplit = [ | |
{aeK : "Units Per Second", jsVar:"framerate"}, | |
{aeK : "Source Width", jsVar:"viewportWidth"}, | |
{aeK : "Source Height", jsVar:"viewportHeight"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* converts a XYZ vector3 to longitude latitude (Direct Polar) | |
* @param lng longitude | |
* @param lat latitude | |
* @param vector3 optional output vector3 | |
* @returns a unit vector of the 3d position | |
*/ | |
function lonLatToVector3( lng, lat, out ) | |
{ | |
out = out || new THREE.Vector3(); |