Calculation of direction vector

59 Views Asked by At

If i turn a line whose initial direction vector components were (0,1) in left in 2D space in 15 degree angle what would be the direction vector and its component? I tried to do it using the law,

   x=0*cos(15)+1*sin(15);
   y=0*sin(15)-1*cos(15);

but i'm getting wrong answer.Can you please provide the calculation briefly?