heya... ok, so i was browsing the net to find out if there's a good text on this algorithm, but i don't seem to be able to find one. people are obviously using it, but, hey, there's no info on it.
the part i get is the theory on how it works... moving the line through the plane and stuff of that kind, but i've never, ever seen a simple, decent c++ implementation of it. i see people talking about starting events, stopping events, doing stuff like that, but i don't have any idea how i would implement that. could someone please help me?
gregorynoob
2
Junior Poster in Training
Recommended Answers
Jump to Post>i've never, ever seen a simple, decent c++ implementation of it
Write one. That's what I do when I can't find a satisfactory implementation to pinch. Just find a good description of the algorithm and construct the code yourself; be careful not to get stuck on descriptions of an implementation, …
Jump to Post>i'm really not talented in implementing something from scratch
There's no such thing as talent in programming, only experience. And you can only gain experience by doing it. My first merge sort was crappy too, but now I can crank out high quality implementations without batting an eyelash.
Jump to PostI can see getting the area of union of two rectangles defined by a series of three points. Is that good enough? I can also do it for a series of four points, if there isn't a common vertex.
All 11 Replies
Narue
5,707
Bad Cop
Team Colleague
gregorynoob
2
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
gregorynoob
2
Junior Poster in Training
Lerner
582
Nearly a Posting Maven
gregorynoob
2
Junior Poster in Training
Lerner
582
Nearly a Posting Maven
gregorynoob
2
Junior Poster in Training
Lerner
582
Nearly a Posting Maven
Lerner
582
Nearly a Posting Maven
Lerner
582
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.