4 ms·
Just want to throw in http://glmatrix.net http://glmatrix.net. It supports vectors and matrices, Node and the browser and is crazy fast. (No affiliation!)
by teamhappy 12y ago
Just want to throw in http://glmatrix.net http://glmatrix.net. It supports vectors and matrices, Node and the browser and is crazy fast. (No affiliation!)
- j_m_b 12y agoYou wouldn't happen by chance to know of any libraries for doing geometric calculations? I would like a library that can handle rendering ellipses, determine if two ellipses intersect,if a line intersects or is within an ellipse, etc.
- teamhappy 12y agoDrawing ellipses is easy. Just pick any canvas library: https://developer.mozilla.org/de/docs/Web/HTML/Canvas#Libraries https://developer.mozilla.org/de/docs/Web/HTML/Canvas#Librar... I'm afraid you have to calculate the intersections yourself though. I know there is a Processing(.org) plugin that does that kind of thing (might be called "intersection") and Processing can export to JS. I hope this helps at least a little bit.
- bhouston 12y agoThree.js has a lot of these types of functions in 3D. Why not contribute the ellipse code for 2D usage.
- bluepill 12y ago+1