subtraction of angles
1 post • Page 1 of 1
subtraction of angles
Simple code to subtract two angles (and fit it in -pi +pi range).
btw you need to do same with sum...
- Code: Select all
scene.my.aSub = (a, b)=>{c := (a-b)%(2*math.pi); c > math.pi ? {c - 2*math.pi}:{c < - math.pi ? c+2*math.pi : c}}
btw you need to do same with sum...
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests



