I want to make a side scrolling game by C# windows forms, and for that I need to make a class for two-dimensional vectors. When searching the web all I found was 3 dimensional vectors which is way beyond what I need, and as soon as I add "two dimensional" to the query I get only results for multidimensional arrays.
All I need for the class to do is to be able to get a polaric expression of a vector (size and angle) and return it's cartesic expression (X,Y) & vice-versa. I tried doing it with Math.Sin and Math.Cos but I always get weird results. Can anyone help me with an explanation or a prepared code?