public class Volumes extends java.lang.Object implements IBoundable
| Constructor and Description |
|---|
Volumes(Array<IBoundable> boundables) |
Volumes(IBoundable[] volumes) |
| Modifier and Type | Method and Description |
|---|---|
static Box |
asBox(IVolume<?> volume) |
static Capsule |
asCapsule(IVolume<?> volume) |
static Cylinder |
asCylinder(IVolume<?> volume) |
static Sphere |
asSphere(IVolume<?> volume) |
static IVolume<?> |
concatenate(IVolume v,
IVolume v2)
Concatenate two volumes of the same
VolumeType. |
static IVolume |
concatenate(IVolume v,
IVolume v2,
Mat4x4 matrix2)
This utility methods handles null and
OrientedVolume |
static Box |
convertToBox(Box dst,
IVolume<?> volume)
|
static IVolume<?> |
createVolume(VolumeType volType,
float size) |
static Vec3 |
getCenter(Vec3 dst,
IVolume<?> volume) |
IVolume<?> |
getVolume(int bvOptions) |
static IVolume<?> |
getVolume(int bvOptions,
Array<? extends IBoundable> boundables) |
static IntersectTest |
intersectTest(IVolume v,
IVolume v2)
This utility methods handles null and
OrientedVolume |
static Mat4x4 |
multiply(Mat4x4 tmpOrDst,
Mat4x4 matrix,
ITransformable transformable) |
static IVolume |
toAxisAligned(IVolume v) |
public Volumes(Array<IBoundable> boundables)
public Volumes(IBoundable[] volumes)
public IVolume<?> getVolume(int bvOptions)
getVolume in interface IBoundablebvOptions - bounding volume options.BoundingBox or BoundingSphere depending on options.VolumeOptions,
Box,
Sphere,
Cylinder,
Capsulepublic static IVolume<?> getVolume(int bvOptions, Array<? extends IBoundable> boundables)
public static IntersectTest intersectTest(IVolume v, IVolume v2)
OrientedVolumepublic static IVolume concatenate(IVolume v, IVolume v2, Mat4x4 matrix2)
OrientedVolumeconcatenate(IVolume, IVolume)public static final IVolume<?> concatenate(IVolume v, IVolume v2)
VolumeType.OrientedVolumepublic static Mat4x4 multiply(Mat4x4 tmpOrDst, Mat4x4 matrix, ITransformable transformable)
public static IVolume<?> createVolume(VolumeType volType, float size)
volType - type of the volume to createsize - size of the volume to create, must be >=0public static Box convertToBox(Box dst, IVolume<?> volume)
dst - destination to store the resultBonzai 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