Added geom classes based on doubles #9
+22,623
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I need to hack about with geometry using double precision.
Forked your lib to add double versions of your geom classes.
Would like to share.
Your lib is much more replete than my legacy home-brew C library (1990's). I have converted over to Java/Scala, and Processing, so it seems like adopting use of toxicLib is WAY desireable.
BUT, am developing a CNC technology which is intended to have 30 meter span with 0.01 mm movement control. So I need doubles.
Know the continuing 32Bit speed advantage for graphics, even outside the GPU. Had written an OpenGL 3D app used by IBM failure analysis folks to fly thru the real 3D paths of the 100,000 wires in our mainframes. That app worked on a 486, so understand speed vs size. Believe there are also folks with application spaces where the trade-off of precision vs speed favors doubles.
Implementation details are the fork under Doubles_README.md
PS: Figure you would be one of the few who will appreciate an efficiency neither of us implemented.
We implemented a plane as a point and a normal (6 parameters), which is better than the plebeian 9 parameter: 3 points define a plane. I recently came upon the suggestion (no idea of the source) that a plane can be described in only 4 parameters: a normal and scalar. The scalar is the distance from the origin, along the normal, to the plane.