Lerp Angle Function In Javascript With Parameters In Java