Originally Posted by Jacob Roman
Yeah, that was a typo. I didn't do that in VB. I was typing whatever was on the top of my head. :P
Ok think of any shape with a circle (or oval for wide/skinny non perfect shapes) wrapped around it. A triangle would be a good example. This is known as a bounding sphere.....errrr actually circle since this is 2D and not 3D. If the circle wrapped around a shape is within the screen, it is visible. If not, then it's invisible.
And no you won't get 100% results, just like in 3D when you are testing all those complex geometric polygonal objects. A bounding box or bounding sphere can only do so much when you are testing them for visibility, but it's close enough to get the job done. ;)