When math goes wrong...
I was working on what I thought was a super duper cool concept when I royally screwed up the math running it. I ended up getting immersed in the result and have been having so much fun playing with the resulting mistake that I can't bear to fix it. Sometimes flunking math turns out to be a good thing. Just don't tell my parents.
Source
I was working on what I thought was a super duper cool concept when I royally screwed up the math running it. I ended up getting immersed in the result and have been having so much fun playing with the resulting mistake that I can't bear to fix it. Sometimes flunking math turns out to be a good thing. Just don't tell my parents.
2 Comments:
Thanks! I really learned a lot reading the code and playing around with it. Even though it contains no comments at all the code is very clear.
On the math side the translation is a little weird though... What exactly was it you were trying to do? ;)
B.
Me again. Is it just my computer or is Avalon very overenthusiastic when it comes to sending MouseMove events? It was all a bit rocky until I added
Stopwatch S = new Stopwatch();
TimeSpan? LastTime = null;
private void UpdateValues(object sender, EventArgs e){
if(LastTime.HasValue && (S.Elapsed - LastTime.Value).TotalMilliseconds < 20)
return;
LastTime = S.Elapsed;
//...
And voilá, it is so much smoother, I didnt think it would be possible.
Post a Comment
<< Home