|
Atari coding BBS
Re: Clipping optimisation ? |
Posted by: Laurent / Thadoss
|
Feb,14.2013-14:26
|
Hi again,
Thanks a lot GGN, that was exactly was I was looking for :
Xclip = X1 + (X2 - X1) * (Yclip - Y1) / (Y2 - Y1) <---> (Yclip = 239)
With this one, I need 1 mul and 1 div in word size instead of 2 divs and 1 mul in long size.
Perfect !
Regards,
Laurent
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|