View Single Post
Old 14 August 2019, 21:20   #72
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 609
Originally Posted by NorthWay View Post
Can't you do bounding box with min(abs(x-x_box),abs(y-y_box)) < (radius+box_radius)
BTW, this should also be possible to shuffle the logic on so you have an early exit if either is bigger than the added radius.
And you can do a branch-free ABS() in something like 3 instructions, though that might be 2 cycles slower on 68000.
NorthWay is offline  
Page generated in 0.04219 seconds with 11 queries