public class PxBounds3 extends NativeObject
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
|
PxBounds3() |
protected |
PxBounds3(long address) |
|
PxBounds3(PxVec3 minimum,
PxVec3 maximum) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(PxVec3 v) |
static PxBounds3 |
createAt(long address) |
static PxBounds3 |
createAt(long address,
PxVec3 minimum,
PxVec3 maximum) |
static <T> PxBounds3 |
createAt(T allocator,
NativeObject.Allocator<T> allocate) |
static <T> PxBounds3 |
createAt(T allocator,
NativeObject.Allocator<T> allocate,
PxVec3 minimum,
PxVec3 maximum) |
void |
destroy() |
void |
fattenFast(float distance) |
void |
fattenSafe(float distance) |
PxVec3 |
getCenter() |
PxVec3 |
getDimensions() |
PxVec3 |
getExtents() |
PxVec3 |
getMaximum() |
PxVec3 |
getMinimum() |
void |
include(PxVec3 v) |
boolean |
intersects(PxBounds3 b) |
boolean |
intersects1D(PxBounds3 b,
int axis) |
boolean |
isEmpty() |
boolean |
isFinite() |
boolean |
isInside(PxBounds3 box) |
boolean |
isValid() |
void |
scaleFast(float scale) |
void |
scaleSafe(float scale) |
void |
setEmpty() |
void |
setMaximal() |
void |
setMaximum(PxVec3 value) |
void |
setMinimum(PxVec3 value) |
static PxBounds3 |
wrapPointer(long address) |
checkNotNull, equals, getAddress, hashCodepublic static final int SIZEOF
public static final int ALIGNOF
public static PxBounds3 wrapPointer(long address)
public static PxBounds3 createAt(long address)
address - Pre-allocated memory, where the object is created.public static <T> PxBounds3 createAt(T allocator, NativeObject.Allocator<T> allocate)
T - Allocator class, e.g. LWJGL's MemoryStack.allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.public static <T> PxBounds3 createAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 minimum, PxVec3 maximum)
T - Allocator class, e.g. LWJGL's MemoryStack.allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.minimum - WebIDL type: PxVec3 [Const, Ref]maximum - WebIDL type: PxVec3 [Const, Ref]public void destroy()
public void setEmpty()
public void setMaximal()
public boolean isEmpty()
public boolean intersects(PxBounds3 b)
b - WebIDL type: PxBounds3 [Const, Ref]public boolean intersects1D(PxBounds3 b, int axis)
b - WebIDL type: PxBounds3 [Const, Ref]axis - WebIDL type: unsigned longpublic boolean contains(PxVec3 v)
v - WebIDL type: PxVec3 [Const, Ref]public boolean isInside(PxBounds3 box)
box - WebIDL type: PxBounds3 [Const, Ref]public void scaleSafe(float scale)
scale - WebIDL type: floatpublic void scaleFast(float scale)
scale - WebIDL type: floatpublic void fattenSafe(float distance)
distance - WebIDL type: floatpublic void fattenFast(float distance)
distance - WebIDL type: floatpublic boolean isFinite()
public boolean isValid()