Click to See Complete Forum and Search --> : help with 2D class vector


ronzzz
December 13th, 2006, 01:28 PM
need some help with one of the following class
i need to do a 2D class vector
Enter x value for vector1 [x, y] as well as enter y value
Vector1 rotated by 90 degrees anticlockwise
Vector1 rotated by -180 degrees clockwise
Negated vector1
Duplicate vector2
Negated vector2

TheCPUWizard
December 13th, 2006, 01:37 PM
First define a vector class that holds the approriate state. then add methods for the desired manipulations, then write a test program to exercise the class.

One you have actually written some code, then post any problems here and I am sure someone will try to lend a hand, if you appear to be making a diligent effort.

ronzzz
December 13th, 2006, 10:20 PM
i jus do not know how to do the rotation part cause in C++ its using radian ? can somebody help me with that part ?