-
-
Senior Member
Most probably your teachers sucked.
(edit: "Banned" oh well, I guess he will not be back to reply then)
-
Senior Member
-
When in doubt ask
Originally Posted by realMakc
Is the curve a catenary,
Last edited by Eager Beaver; 10-18-2014 at 02:53 AM.
<signature removed by admin>
-
Senior Member
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
-
Senior Member
Originally Posted by realMakc
Btw, this was later turned into musical instrument by someone.
-
Senior Member
Since I am here, why not bump the thread ) Here goes parabola through three points.
-
Senior Member
-
Senior Member
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)
-
Client Software Programmer
Give an example game feature that uses parabola realmakc
-
Senior Member
Idk, dotted aim line in angry birds?
-
Senior Member
most of the links above are now dead, just like flash
-
Client Software Programmer
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
Last edited by AS3.0; 05-22-2019 at 07:44 PM.
-
Client Software Programmer
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
);
}
-
Senior Member
jesus fuken christ, alloy. it's
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; }); }
you would need more lines to support "n" parameter, but otherwise "lambda expressions" are not big deal at all.
Last edited by realMakc; 06-08-2019 at 03:04 PM.
-
Client Software Programmer
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.
Last edited by AS3.0; 06-08-2019 at 08:21 PM.
-
Client Software Programmer
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.
Last edited by AS3.0; 06-08-2019 at 09:55 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|