Original Post
I''m working through Lamothe''s Tricks book (2nd ed), and I''m on chapter 4 looking at basic GDI graphics. He wrote a little demo that creates polygons randomly by creating random points. He says "Notice, that because the points are random, the polygons are almost always degenerate due to overlapping geometry. Can you find a way to make sure that all the points exist within a convex hull?"
I know nothing about graphics. I''m assuming that a degenerate polygon is one that kind of overlaps itself? I was thinking on this for a while and I really have no clue where to start with an algorithm like that but I''m guessing that it can''t be *too* hard by the way he just kind of threw it in there as an exercise.
This kind of thing worries me a bit because it''s all well and good knowing how to use C++, Win32, DirectX etc to do things on the screen, but if I don''t know how to do basic things like this then I won''t get very far
So along the same lines, if this book isn''t going to teach me how to apply what I''m learning to game development, then are there any books out there that focus more on the algorithms than the programming syntax? And if this is going to involve a load of math then I''ll probably just shelve it for a year or so until I have learnt more
Thanks,
Caroline M.