Calculator Community > Axe
Routines
Eeems:
Axe Parser code :P
yeah, I know line will be included later, but now I can't stop trying to figure out how to do it with only pxl-on() x.x
Galandros:
--- Quote from: Eeems on February 19, 2010, 04:06:58 pm ---Axe Parser code :P
yeah, I know line will be included later, but now I can't stop trying to figure out how to do it with only pxl-on() x.x
--- End quote ---
Get the slope from the 2 points and pixel on points in line between the 2 points. Basically use y=mx+b equation.
This is how it can be done in assembly. There is a tutorial for this in Patagay assembly tutorial.
By using sine and cosine is also possible...
Eeems:
hmm, but how would you do that with no decimal places?
Galandros:
--- Quote from: Eeems on February 19, 2010, 04:35:01 pm ---hmm, but how would you do that with no decimal places?
--- End quote ---
If you want 1 decimal place then use that number times 10 and the least significant digit is your decimal place.
Example of to show what the previous phrase means:
.1 turns 1
1.9 turns 19
Now imagine you want to multiply A and B where A is .1 (10) and B=1.9 (19).
You do (A*B)/100.
Note that these expressions are equivalent: .1*1.9 = ((1/10) * (19/10)) / 100
Eeems:
well that would work, but Axe doesn't support decimals, so that would be an issue...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version