A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 37 of 37

Thread: Daily math dose thread

  1. #21
    Banned
    Join Date
    Dec 2012
    Location
    Los Angeles
    Posts
    6
    Can't understand.....

  2. #22
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    Most probably your teachers sucked.

    (edit: "Banned" oh well, I guess he will not be back to reply then)
    who is this? a word of friendly advice: FFS stop using AS2

  3. #23

  4. #24
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Quote Originally Posted by realMakc View Post
    Is the curve a catenary,
    Last edited by Eager Beaver; 10-18-2014 at 02:53 AM.
    <signature removed by admin>

  5. #25
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    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
    who is this? a word of friendly advice: FFS stop using AS2

  6. #26
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    Quote Originally Posted by realMakc View Post
    Btw, this was later turned into musical instrument by someone.
    who is this? a word of friendly advice: FFS stop using AS2

  7. #27
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    Since I am here, why not bump the thread ) Here goes parabola through three points.
    who is this? a word of friendly advice: FFS stop using AS2

  8. #28
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    who is this? a word of friendly advice: FFS stop using AS2

  9. #29
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927

    Cool

    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)
    who is this? a word of friendly advice: FFS stop using AS2

  10. #30
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    Give an example game feature that uses parabola realmakc

  11. #31
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    Idk, dotted aim line in angry birds?

    who is this? a word of friendly advice: FFS stop using AS2

  12. #32
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    most of the links above are now dead, just like flash
    who is this? a word of friendly advice: FFS stop using AS2

  13. #33
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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.

  14. #34
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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(floatxunsigned n) {   
        
    std::sort(xn,   
            
    // Lambda expression begins   
            
    [](float afloat b) {   
                return (
    std::abs(a) < std::abs(b));   
            } 
    // end of lambda expression   
        
    );   


  15. #35
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    jesus fuken christ, alloy. it's
    PHP Code:
    function abssort(x:Array):Array {
     return 
    x.sort (function (a:Numberb:Number):Number { return Math.abs(a) < Math.abs(b) ? -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.
    who is this? a word of friendly advice: FFS stop using AS2

  16. #36
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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.

  17. #37
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center