Theory: "I'll convert all coordinates to integers, operations on them will be faster than floats!"
Reality: Integer Overflow errors

Follow

@ebel are you talking about Cairo?

(It uses fixed point not to be fast, but to do Bentley-Ottman intersections. But it overflows with big coordinates.)

@ebel oh ok :) I hope you find a solution. Graphics are hard.

@federicomena I want to reimplement my "find all intersections" code with that algorithm

Sign in to participate in the conversation
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!