We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/kingiluob/Games101/blob/master/pa0/main.cpp
Snippet:
transform << cos(45),-cos(45),1,-cos(45),cos(45),2,0,0,1;
cos function uses radian, not degree. And the rotation matrix is wrong. It should be something like this:
cos
float angle = 45.0f / 180.0f * M_PI; Eigen::Matrix3f transform; transform << cos(angle), -sin(angle), 1, sin(angle), cos(angle), 2, 0, 0, 1;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/kingiluob/Games101/blob/master/pa0/main.cpp
Snippet:
cos
function uses radian, not degree. And the rotation matrix is wrong. It should be something like this:The text was updated successfully, but these errors were encountered: