Skip to content

Instantly share code, notes, and snippets.

Patrick HENG patrickheng

Block or report user

Report or block patrickheng

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fovProjection.js
const frustumHeight = 2.0 * dist * Math.tan(camera.fov * 0.5 * (Math.PI / 180))
const frustumWidth = frustumHeight * aspect
View Angular spec
feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing or correcting existing tests
chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
View Damping
current -= ( target + current ) * friction
current += ( target - current ) * friction
patrickheng / bindFromArray.js
Created Jun 19, 2016
View bindFromArray.js
[ 'method1', 'method2' ]
.forEach( ( fn ) => this[ fn ] = this[ fn ].bind( this ) );
You can’t perform that action at this time.