Can't understand.....
Printable View
Can't understand.....
Most probably your teachers sucked.
(edit: "Banned" :( oh well, I guess he will not be back to reply then)
Is the curve a catenary,
as it says in the quote, it's "single bezier segment", parabola or cubic curve.
oh, and to be on topic, here goes rounding any angle to right angle
Btw, this was later turned into musical instrument by someone.
Since I am here, why not bump the thread ) Here goes parabola through three points.
2D ray - triangle intersection by Glidias
code to push the needle around from another thread, eventually turned out to be not what op was looking for, so I've figured why not put it here instead (the thread is now yearly math dose)
Give an example game feature that uses parabola realmakc
Idk, dotted aim line in angry birds?
https://images.igdb.com/igdb/image/u...fuztyujozl.png
most of the links above are now dead, just like flash :D
Thats a good example. I will try to make a 3d version in flash sometime later on and share it here.
I have my open source 3d engine here to implement parabola: rpguy.weebly.com
Lambda Expressions
lambda expressions is one of the steps to be able to get the flash runtime libraries running on your next future of operating systems that wont support flash. Leave a comment on what you know about lambda and techniques you can do with it.
port this to as3 if you understood lambda expressions from c++:
c++
PHP Code:
#include <algorithm>
#include <cmath>
void abssort(float* x, unsigned n) {
std::sort(x, x + n,
// Lambda expression begins
[](float a, float b) {
return (std::abs(a) < std::abs(b));
} // end of lambda expression
);
}
jesus fuken christ, alloy. it's
you would need more lines to support "n" parameter, but otherwise "lambda expressions" are not big deal at all.PHP Code:
function abssort(x:Array):Array {
return x.sort (function (a:Number, b:Number):Number { return Math.abs(a) < Math.abs(b) ? -1 : 1; });
}
I am sure you can run flash runtime linked list library in as3 using flashes setpixel functions to handle the drawings and it would be very slow it would be like running its self for example, there is more too it than just lambda, I will find the next step to get it running, its very complicated root procedures.
...but nice port.
pepflashplayer.dll , libflashplayer.so , libpepflashplayer.so are closed source libraries but the software to get it running is very complicated and open you just use memory systems, math functions, setpixel functions to get it animating the swf.
I want to boot it as an os in assembly language when I put it together in as3 first.