Look at this wiki page. They gave her the first R (the 2x2 matrix with sin/cos).
They showed her how matrix-vector multiplication works (the Rv = stuff example).
And they wanted her to program that. Basically this:
Of course you can do more fun stuff depending on your language of choice (pass by reference/copy, initialize vars, ...), maybe you have to import a math lib for cos/sin, ... but that is the absolute basic.
It's "Here's a math formula, please make the PC do it".
Look at this wiki page. They gave her the first R (the 2x2 matrix with sin/cos).
They showed her how matrix-vector multiplication works (the Rv = stuff example).
And they wanted her to program that. Basically this:
2dvector rotate(2dvector v, double theta) {
r[0] = v[0] * cos(theta) - v[1] sin(theta)
r[1] = v[0] * sin(theta) + v[1] cos(theta)
return r }
Of course you can do more fun stuff depending on your language of choice (pass by reference/copy, initialize vars, ...), maybe you have to import a math lib for cos/sin, ... but that is the absolute basic.
It's "Here's a math formula, please make the PC do it".
You're hired.