Panicky Commuter
Re: Panicky Commuter
Why the hell would you write your own sine function if you can just use math.sin? You just have to give it the degree in rad (multiply by 2*pi/360 if you didn't pay attention in math class).
Re: Panicky Commuter
For fun?XQYZ wrote:Why the hell would you write your own sine function if you can just use math.sin? You just have to give it the degree in rad (multiply by 2*pi/360 if you didn't pay attention in math class).
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Panicky Commuter
Why the hell would you convert to radians manually if you can just use math.rad?XQYZ wrote:You just have to give it the degree in rad (multiply by 2*pi/360 if you didn't pay attention in math class).
Help us help you: attach a .love.
Re: Panicky Commuter
Didn't know about that oneRobin wrote:Why the hell would you convert to radians manually if you can just use math.rad?XQYZ wrote:You just have to give it the degree in rad (multiply by 2*pi/360 if you didn't pay attention in math class).
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Re: Panicky Commuter
neither did I, but I guess you learn something new all the time. However, the effort of converting deg to rad is comparably low compared to implementing trigonometric functionsT-Bone wrote:Didn't know about that oneRobin wrote:Why the hell would you convert to radians manually if you can just use math.rad?XQYZ wrote:You just have to give it the degree in rad (multiply by 2*pi/360 if you didn't pay attention in math class).
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Panicky Commuter
Fun times. A couple more difficulty options would be fantastic.
Also, here's a low-hanging fruit: you can gain just a tiny bit of performance very easily by disabling features in conf.lua. For example, you can set t.modules.joystick and t.modules.physics to false. Instant reduction of startup time (slightly) and reduction of memory usage (again, slightly).
Also, here's a low-hanging fruit: you can gain just a tiny bit of performance very easily by disabling features in conf.lua. For example, you can set t.modules.joystick and t.modules.physics to false. Instant reduction of startup time (slightly) and reduction of memory usage (again, slightly).
Kurosuke needs beta testers
Re: Panicky Commuter
how do radians work actualy >_>?XQYZ wrote:neither did I, but I guess you learn something new all the time. However, the effort of converting deg to rad is comparably low compared to implementing trigonometric functionsT-Bone wrote:Didn't know about that oneRobin wrote:
Why the hell would you convert to radians manually if you can just use math.rad?
(i live in europe so i only use degrees)
Re: Panicky Commuter
Who says we don't use radians in Europe? What nonsense is this?
Radians is a unit for measuring angles that has several mathematical benefits. A full circle is 2*pi.
Radians is a unit for measuring angles that has several mathematical benefits. A full circle is 2*pi.
Last edited by bartbes on Tue Aug 30, 2011 7:17 pm, edited 1 time in total.
Reason: How dare you get those maths wrong
Reason: How dare you get those maths wrong
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Panicky Commuter
Dude, seriously. Radians is an international standard, like meters and seconds.GijsB wrote:(i live in europe so i only use degrees)
Oh, and T-Bone is right. For more information see Dutch Wikipedia.
Help us help you: attach a .love.
Re: Panicky Commuter
Same. Even our school calculators required input in rad. It's actually a much more logical unit of measurement when it comes to angles since you can derive it from a circle whereas the 360 degrees are purely arbitrary and could as-well be 500 degrees. The only thing that makes it highly impractical is that it relies on the irrational number pi, so you either have to save fractions of pi or deal with inaccuracy.T-Bone wrote:Who says we don't use radians in Europe? What nonsense is this?
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest