Question: Please help with this question using c++ im stuck with this :( This is a CodeRunner question. You are going to implement a function which
Please help with this question using c++ im stuck with this :(
This is a CodeRunner question.
You are going to implement a function which creates a rotation matrix in 2d. using C++
/////////////////////////////////////////////////////
struct Mat3f { // mij is located in rowi, columnj float m11, m21, m31; float m12, m22, m32; float m13, m23, m33; };
struct Vec2f { // column vector float x; float y; };
// create a 2d rotation matrix for rotation by angle around the point p Mat3f create2dRotation(float angle, Vec2f p) { Mat3f res; // insert your code here return res; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
