public final class MyVolume
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Modifier and Type | Method and Description |
|---|---|
static float |
boxVolume(Vector3f halfExtents)
Compute the volume of a box with the specified half extents.
|
static float |
capsuleVolume(float radius,
float height)
Compute the volume of a capsule with the specified radius and height.
|
static float |
coneVolume(float radius,
float height)
Compute the volume of a cone with the specified radius and height.
|
static float |
cylinderVolume(Vector3f halfExtents)
Compute the volume of a cylinder with specified half extents.
|
static float |
sphereVolume(float radius)
Compute the volume of a sphere with the specified radius.
|
static double |
tetrahedronVolume(Vector3f v1,
Vector3f v2,
Vector3f v3,
Vector3f v4)
Determine the volume of the specified tetrahedron.
|
public static final java.util.logging.Logger logger
public static float boxVolume(Vector3f halfExtents)
halfExtents - the half extents on each local axis (not null, all
components ≥0, unaffected)public static float capsuleVolume(float radius,
float height)
radius - the radius of the capsule (≥0)height - the height of the cylindrical portion (≥0)public static float coneVolume(float radius,
float height)
radius - the radius of the cone (≥0)height - the height of the cone (≥0)public static float cylinderVolume(Vector3f halfExtents)
halfExtents - the half extents on each local axis (not null, all
components ≥0, unaffected)public static float sphereVolume(float radius)
radius - the radius of the sphere (≥0)public static double tetrahedronVolume(Vector3f v1, Vector3f v2, Vector3f v3, Vector3f v4)
v1 - the location of the first vertex (not null, unaffected)v2 - the location of the 2nd vertex (not null, unaffected)v3 - the location of the 3rd vertex (not null, unaffected)v4 - the location of the 4th vertex (not null, unaffected)