Skip to content

Instantly share code, notes, and snippets.

@brunokruse
brunokruse / angleLerp.js
Created March 20, 2016 02:46 — forked from shaunlebron/angleLerp.js
The best way to interpolate 2D angles
/*
2D Angle Interpolation (shortest distance)
Parameters:
a0 = start angle
a1 = end angle
t = interpolation factor (0.0=start, 1.0=end)
Benefits:
1. Angles do NOT need to be normalized.