0 Members and 1 Guest are viewing this topic.
Why are you using the fixed ** multiplication ? I tought that it was only for 8.8 fixed number .
It is indeed signed, but not treated as integers. Normal multiplication, on the other hand, works for any type of integer (signed or unsigned).
// still the signed division (with two integer), isn't it ?
Quote from: TheMachine02 on November 16, 2012, 12:42:55 pm // still the signed division (with two integer), isn't it ?Yes, that's correct, you still need signed division.
see this one : http://ourl.ca/16928(only for y>64)
But that would be great to have one that supports clipping in all 4 directions.
What is the cause of the line being cut off at the right side of the screen?
If r1<<0 r4-(r2-r4*r3//(r1-r3))->r2 0->r1EndIf r1>94 r2-r4*94//(r1-r3)+r2-(r2-r4*r1//(r1-r3))->r2 94->r1End
If r1<<0 -1->r1 r4-(r2-r4*r3//(r1-r3))->r2ElseIf r1>94 r2-r4*94//(r1-r3)+r2-(r2-r4*r1//(r1-r3))->r2 94->r1End