Skip to content
New issue

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

[Book2] Missing semicolon in Listing 68 #1262

Closed
LiuZengqiang opened this issue Sep 10, 2023 · 0 comments · Fixed by #1263
Closed

[Book2] Missing semicolon in Listing 68 #1262

LiuZengqiang opened this issue Sep 10, 2023 · 0 comments · Fixed by #1263

Comments

@LiuZengqiang
Copy link

Missing semicolon in Listting 68:

...
        // Change the normal from object space to world space
        auto normal = rec.normal
        normal[0] =  cos_theta*rec.normal[0] + sin_theta*rec.normal[2];
        normal[2] = -sin_theta*rec.normal[0] + cos_theta*rec.normal[2];
...

should be:

...
        // Change the normal from object space to world space
        auto normal = rec.normal;
        normal[0] =  cos_theta*rec.normal[0] + sin_theta*rec.normal[2];
        normal[2] = -sin_theta*rec.normal[0] + cos_theta*rec.normal[2];
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants