avatar
L Break Into Program @breakintoprogram.co.uk

So, here’s a question. I normally use Cohen Sutherland’s line clipping algorithm. It’s fairly straightforward. Can anyone personally recommend any better alternatives?

aug 20, 2025, 3:52 pm • 4 0

Replies

avatar
Paul "Paulie" Hughes @pauliehughes.bsky.social

It sort of depends on the platform (like in th'olden days on Z80/6502 I used to divide and conquer until the endpoint touched the clip window). For parametrics I used Cohen Sutherland for the longest time on 68K and early x86 I switched to Liang-Barsky for a while as it's marginally more efficient.

aug 20, 2025, 6:45 pm • 3 0 • view
avatar
L Break Into Program @breakintoprogram.co.uk

Might have to dig out my notes. I have done this before on Z80. My first effort was a divide and conquer. It was so long ago!

aug 20, 2025, 7:03 pm • 2 0 • view