Skip to content

Conversation

@widcardw
Copy link
Contributor

Problem

I'd like to rotate the camera frame in one scene but something was wrong. It turned out to that the value of new_rot_T[2] went beyond [-1,1], which is fatal for the arccos function. The problem was probably caused by loss of precision in float calculation.

Proposed changes

As a result, clip function is called before Fz is passed into acos.

@TonyCrane TonyCrane requested a review from 3b1b October 18, 2021 11:46
@3b1b 3b1b merged commit f77e25f into 3b1b:master Oct 18, 2021
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 this pull request may close these issues.

3 participants