![]() I know you can easily do 90 degree rotations with a 2d matrix, but after fiddling around a bit I realized that I've forgotten most of my matrix math skills and just can't solve the above case. I feel this should be solvable with a matrix of some sort. I could just do a bunch if if-cases to solve this, but that's inelegant. Rotating one step clockwise should result in : #. I want to rotate a normal on a grid, one square at a time (so basically the equivalence of 45 degrees).Įxample: Rotating one step clockwise should result in. if your post does not appear in the new queue, just send a message to the moderators.make your questions relevant to other readers.give your post a meaningful title, i.e., NOT "I have a C++ problem" but, e.g., "Problem with nested for loops".thoroughly research for an answer first.Tips for improving your chances of getting helpful answers: Read these guidelines for how to ask smart questions.įor learning books, check The Definitive C++ Book Guide and Listįlair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page. Hasty-sounding questions get hasty answers, or none at all. New to C++? Learn at READ BEFORE POSTINGīefore you post, please read our sticky on proper code formatting. For general discussion and news about c++ see r/cpp. This is a subreddit for c++ questions with answers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |