Your function should also take in a third parameter theta


Write a function called rotateLine that takes in two vectors, x and y, of the same length that represent a set or ordered pairs that could be used to plot a line. Your function should also take in a third parameter, theta, representing an angle in degrees. Your function should return xprime and yprime where xprime and yprime represent the line that is x and y rotated about the origin by the angle theta.

611_2e78271e-87f1-45e6-8118-59aa4d16c944.png

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Your function should also take in a third parameter theta
Reference No:- TGS01599116

Expected delivery within 24 Hours