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

Fix EPSILON #11

Merged
merged 1 commit into from
Feb 22, 2016
Merged

Fix EPSILON #11

merged 1 commit into from
Feb 22, 2016

Conversation

525c1e21-bd67-4735-ac99-b4b0e5262290

The title of #10 should have read "EPSILON way too small".

Suggesting Number.EPSILON was a mistake as it relates to doubles and is far too small.

e335c74 broke pitching a perspective-camera all the way "up" or "down" using an orbit-controls.

This is due to routines like gl-mat4/invert failing to behave when backed by Float32Arrays which I demonstrate in #5

See https://en.wikipedia.org/wiki/Machine_epsilon for formulaic explanations.

For the record: gl-matrix uses 0.000001 which you'll agree is more than close enough.

I apologise for any confusion as well as my mistaken suggestion.

This change should also alleviate many instances of #5 ^w^

The title of #10 should have read "EPSILON way too small".

Suggesting `Number.EPSILON` was a mistake as it relates to doubles and is far too small.

e335c74 broke pitching a `perspective-camera` all the way "up" or "down" using an `orbit-controls`.

This is due to routines like gl-mat4/invert failing to behave when backed by `Float32Array`s which I demonstrate in #5

See https://en.wikipedia.org/wiki/Machine_epsilon for formulaic explanations.

For the record: `gl-matrix` uses `0.000001` which you'll agree is more than close enough.

I apologise for any confusion as well as my mistaken suggestion.

This change should also alleviate many instances of #5 ^w^
mattdesl added a commit that referenced this pull request Feb 22, 2016
@mattdesl mattdesl merged commit faa9eb4 into Experience-Monks:master Feb 22, 2016
@mattdesl
Copy link
Contributor

Thanks @pyrotechnick for digging! Would you like to be a contributor to this module as well?

@525c1e21-bd67-4735-ac99-b4b0e5262290

If you flip my commit bit I can fix my own mistakes!

@mattdesl
Copy link
Contributor

This is merged + patched in v1.0.4

@mattdesl
Copy link
Contributor

You're now a contributor. 😄 Guidelines:
http://openopensource.org/

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.

2 participants