This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Find the intersection(s) (x,y,z) and (x_,y_,z_) of three spheres centered | |
| at (x1,y1,z1), (x2,y2,z2) and (x3,y3,z3) with corresponding radii of r1, r2, and r3 | |
| Adapted from http://mathforum.org/library/drmath/view/64311.html | |
| */ | |
| function intersect3spheres(x1, x2, x3, y1, y2, y3, z1, z2, z3, r1, r2, r3) { | |
| var a1, b1, c1, k1, a3, b3, c3, k3, a31, b31, |