java.lang.Object
physx.NativeObject
physx.common.PxBounds3
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxBounds3arrayGet(long baseAddress, int index) booleanstatic PxBounds3createAt(long address) static PxBounds3static <T> PxBounds3createAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxBounds3createAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 minimum, PxVec3 maximum) voiddestroy()voidfattenFast(float distance) voidfattenSafe(float distance) voidbooleanbooleanintersects1D(PxBounds3 b, int axis) booleanisEmpty()booleanisFinite()booleanbooleanisValid()voidscaleFast(float scale) voidscaleSafe(float scale) voidsetEmpty()voidvoidsetMaximum(PxVec3 value) voidsetMinimum(PxVec3 value) static PxBounds3wrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxBounds3
-
createAt
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
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.- Returns:
- Stack allocated object of PxBounds3
-
createAt
-
createAt
public static <T> PxBounds3 createAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 minimum, PxVec3 maximum) - Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
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]- Returns:
- Stack allocated object of PxBounds3
-
destroy
public void destroy() -
getMinimum
- Returns:
- WebIDL type:
PxVec3[Value]
-
setMinimum
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getMaximum
- Returns:
- WebIDL type:
PxVec3[Value]
-
setMaximum
- Parameters:
value- WebIDL type:PxVec3[Value]
-
setEmpty
public void setEmpty() -
setMaximal
public void setMaximal() -
include
- Parameters:
v- WebIDL type:PxVec3[Const, Ref]
-
isEmpty
public boolean isEmpty()- Returns:
- WebIDL type: boolean
-
intersects
- Parameters:
b- WebIDL type:PxBounds3[Const, Ref]- Returns:
- WebIDL type: boolean
-
intersects1D
- Parameters:
b- WebIDL type:PxBounds3[Const, Ref]axis- WebIDL type: unsigned long- Returns:
- WebIDL type: boolean
-
contains
- Parameters:
v- WebIDL type:PxVec3[Const, Ref]- Returns:
- WebIDL type: boolean
-
isInside
- Parameters:
box- WebIDL type:PxBounds3[Const, Ref]- Returns:
- WebIDL type: boolean
-
getCenter
- Returns:
- WebIDL type:
PxVec3[Value]
-
getDimensions
- Returns:
- WebIDL type:
PxVec3[Value]
-
getExtents
- Returns:
- WebIDL type:
PxVec3[Value]
-
scaleSafe
public void scaleSafe(float scale) - Parameters:
scale- WebIDL type: float
-
scaleFast
public void scaleFast(float scale) - Parameters:
scale- WebIDL type: float
-
fattenSafe
public void fattenSafe(float distance) - Parameters:
distance- WebIDL type: float
-
fattenFast
public void fattenFast(float distance) - Parameters:
distance- WebIDL type: float
-
isFinite
public boolean isFinite()- Returns:
- WebIDL type: boolean
-
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-