Skip to content

Instantly share code, notes, and snippets.

View mattdesl's full-sized avatar
👋

Matt DesLauriers mattdesl

👋
View GitHub Profile
@turbodrive
turbodrive / aeCameraParser.js
Last active April 2, 2019 09:39
After Effects Camera Parser
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"},
@nicoptere
nicoptere / THREE.js lon_lat_to_cartesian
Last active January 16, 2023 09:56
methods to convert longitude / latitude to XYZ and back + utility polygon contains point for THREE.js
/**
* 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();