Search:
Type: Posts; User: Dickee
Search:
Search took 0.60 seconds.
-
My apologies ... I must have entered o's instead of 0's. Indeed, Flash is still allowing loose typecasting in AS2 and your app's calculations induce the implicit casting (... trace(typeof(l2x1)); ......
-
Hey Eager Beaver and thomas41546!
1. Your fla implicitly casts the line coordinate variables as 'String' and returns 'NaN' for the intersection coordinates. Further manipulation is required...
-
Hey Brian!
If that code snippet is pasted from your code, you are missing the * operator for var_a, thus returning a flat line.
The equation you are using is just a factored version of the...
-
Sorry ... I had updated to v1.3 without changing the link. All links are fixed now, but if you have a cache problem use ../index1.4.html. I don't have any time right now to explore further, but I...
-
Hey flashpipe1!
OK ... here's an attempt to assist you :)
I compared your code in gridParabola and parabolaX with the Flashkit example graphplotter_10, where a quadratic equation is populated...
-
I forgot to answer your question! No, still no hyperbolic functions for the Math object in Flash 8 :)
-
Hey Tormenter!
Checkout my AS2 class: http://members.shaw.ca/flashprogramming/wisASLibrary/wis/math/geom/trig/Hyperbolic.as
My library houses a Hyperbolic test app in the 'view' column of the...
-
Admin: I suggest you extend edit time a bit please.
DeMarHc:
I'll walk you through the 4 step 'i' cycle ... open the calculator:
Press C to clear memory ...
The left field is the real part...
-
Ooops! I meant to include source links for the 3 examples above, but forgot to edit before posting.
Complex Number Calculator: Source
Cubic Polynomial Equation - Cardan: Source
Quartic...
-
Hey DeMarHc!
I have some information on your query ... checkout my dated-but-still-relevant AS2 Library for the class com.wis math.alg.Complex.as to explore a multitude of complex number methods....
-
Hey OpethRockr55!
Your post creates the opportunity to explore the functionality of an angle mapping algorithm, and may help Aditya with his quest!
Although your ragdoll app performs as...
-
Hey Aditya!
Checkout my AS2Library to explore examples of your quest:
com.wis.math.geom.util.Graphic ... mainly 2D
Angle computation:
1. distance(p1,p2)
2. angle(p1,p2)
-
Hmmm ... it sounds like you're confusing the 8Ball 'flash.geom' object with my 'com.wis.math.geom' package ... my library's language is FMX2004 AS2. After downloading and placing the 'com.wis'...
-
Hey UnknownGuy ... you asked for it! :)
I present this to you with the intent for you to simplify the algorithm to suit your needs:
I ported Andres Duran's original F5 quadratic bezier app to...
-
Hey blablabla05!
Here's a solution for you ... you may have to add an extra step to check for input format ... if the first character in the array element is a '0', the number will be treated as...
-
Hey zlatan!
Math.sin(rad) takes radians as a parameter, so you first need to convert degrees to radians, multiplying by Math.PI/180:
trace (Math.sin(62)); // -0.739180696649223
trace...
-
The Bitwise class object is only available for AS2, but the built-in Number and String methods support AS1:
binToDec: parseInt(bin_str,2);
decToBin: dec_num.toString(2);
The 'binPad' method...
-
Although the valid math provided by Beatcow above can provide the basis for working out a new algorithm, Flash already provides methods for what you seek:
binToDec: parseInt(bin_str,2);
decToBin:...
-
Hey halflifedarknes!
Math.cos takes radians for an argument .. you are using degrees:
90° = Math.PI/2
trace(Math.cos(Math.PI/2)*180/Math.PI);
//3.50823878194633e-15 .. virtually 0 .....
-
Hey janiv!
Well, this isn't pretty, but it works .. I'll bet there's an algorithm or two out there that will handle this using logs or bitwise operations, but I was on a roll with String...
-
OK .. I think this will do it for now! :D
This try returns verbatum, except for the formatting escape characters (\n, \t, \", and \u002c), however, they display when the string requires them in...
-
Here's a try that is more in tune with the spirit of the challenge .. escaped characters don't get traced, but everything else is in place:
var mirror_arr:Array = [
"var mirror_arr:Array...
-
Hmmm .. double-posted .. owel, I'll edit this with another attempt that returns 1 line short as well. I can't twist my brain enough to see a recursive algorithm for it yet:
var str:String =...
-
Ok .. no matter how hard I try, I can't seem to "trace-my-steps":
trace("trace(\"trace\");");
trace("trace(\"trace(\\\"trace\\\");\");");...
-
These are edited excerpts from Brandon Williams' Matrices Tutorial .. I've included the class functions' commented code below and an attempt at portraying the matrix manipulation for both determinant...
|
Click Here to Expand Forum to Full Width
|