-
Notifications
You must be signed in to change notification settings - Fork 6
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
That magic number #2
Comments
|
Yup, or `sqrt(0.5)`.
Lately I’ve been wondering if the following is a cleaner alternative to my current afwidth calculation:
```
float afwidth = fwidth(dist) * 0.5;
```
…Sent from my iPhone
On Oct 16, 2017, at 7:10 PM, Ricky Reusser ***@***.***> wrote:
1 / sqrt(2) ~ 0.70710678118
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I was wondering the same when I played with this. (If I understand correctly, that is,) is there a big difference in practice between |
|
Where's the magic number
0.70710678118654757
from?The text was updated successfully, but these errors were encountered: