| Package | Description |
|---|---|
| com.bonzaiengine.memory | |
| com.bonzaiengine.physics | |
| com.bonzaiengine.shape.geometry | |
| com.bonzaiengine.visibility |
| Modifier and Type | Field and Description |
|---|---|
Sphere |
LocalMemory.sphere |
| Modifier and Type | Method and Description |
|---|---|
void |
CollisionShape.getSphere(Sphere sphere) |
| Modifier and Type | Method and Description |
|---|---|
static IShapeRepresentation<?> |
Sphere.of(Sphere sphere,
int slices,
int stacks) |
| Modifier and Type | Method and Description |
|---|---|
Sphere |
Sphere.addScale(Sphere current,
Sphere next,
float t) |
static Sphere |
Volumes.asSphere(IVolume<?> volume) |
Sphere |
Sphere.clone() |
Sphere |
Sphere.concatenate(Sphere other) |
static Sphere |
Sphere.empty() |
Sphere |
Sphere.interpolate(Sphere current,
Sphere next,
float t)
Interpolate
this bounding sphere with s
and return the new interpolated bounding sphere. |
static Sphere |
Sphere.max() |
Sphere |
Sphere.set(Sphere s) |
Sphere |
Sphere.set(Vec3 center,
float radius) |
Sphere |
Sphere.subtract(Sphere bv1,
Sphere bv2) |
Sphere |
Sphere.transform(Sphere bs,
Mat4x4 matrix) |
| Modifier and Type | Method and Description |
|---|---|
Sphere |
Sphere.addScale(Sphere current,
Sphere next,
float t) |
boolean |
Box.collideWith(Sphere bs)
A Box-Sphere Intersection Test
http://www.gamasutra.com/features/19991018/Gomez_4.htm
|
Sphere |
Sphere.concatenate(Sphere other) |
Sphere |
Sphere.interpolate(Sphere current,
Sphere next,
float t)
Interpolate
this bounding sphere with s
and return the new interpolated bounding sphere. |
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. |
IntersectTest |
Sphere.intersectTest(Sphere s) |
Sphere |
Sphere.set(Sphere s) |
Sphere |
Sphere.subtract(Sphere bv1,
Sphere bv2) |
Sphere |
Sphere.transform(Sphere bs,
Mat4x4 matrix) |
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