| Package | Description |
|---|---|
| com.bonzaiengine.math | |
| com.bonzaiengine.visibility |
| Modifier and Type | Method and Description |
|---|---|
Circle |
Circle.set(Circle src) |
| Modifier and Type | Method and Description |
|---|---|
Circle |
Circle.set(Circle src) |
| Modifier and Type | Method and Description |
|---|---|
Circle |
Sphere.intersection(Sphere sphere)
Sphere-Sphere Intersection
System of 5 equations but 4 unknown: (x-x0)²+(y-y0)²+(z-z0)²=R² (x-x1)²+(y-y1)²+(z-z1)²=r² x = x0 + k * x1-x0 y = y0 y1-y0 z = z0 z1-z0 which can be written as : x(x1-x0) + y(y1-y0) + z(z1-z0) = (R²-r² + x1²-x0² + y1²-y0² + z1²-z0²) / 2 x/(x1-x0) + y/(y1-y0 = x0/(x1-x0) - y0/(y1-y0) Reference to find to radius formula: Weisstein, Eric W. |
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com