Package physx.common
Class PxBounds3
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxBounds3
-
public class PxBounds3 extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFstatic intSIZEOF-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(PxVec3 v)static PxBounds3createAt(long address)static PxBounds3createAt(long address, PxVec3 minimum, PxVec3 maximum)static <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)PxVec3getCenter()PxVec3getDimensions()PxVec3getExtents()PxVec3getMaximum()PxVec3getMinimum()voidinclude(PxVec3 v)booleanintersects(PxBounds3 b)booleanintersects1D(PxBounds3 b, int axis)booleanisEmpty()booleanisFinite()booleanisInside(PxBounds3 box)booleanisValid()voidscaleFast(float scale)voidscaleSafe(float scale)voidsetEmpty()voidsetMaximal()voidsetMaximum(PxVec3 value)voidsetMinimum(PxVec3 value)static PxBounds3wrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxBounds3 wrapPointer(long address)
-
createAt
public static PxBounds3 createAt(long address)
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxBounds3
-
createAt
public static <T> PxBounds3 createAt(T allocator, NativeObject.Allocator<T> allocate)
- 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
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()
-
setEmpty
public void setEmpty()
-
setMaximal
public void setMaximal()
-
isEmpty
public boolean isEmpty()
- Returns:
- WebIDL type: boolean
-
intersects
public boolean intersects(PxBounds3 b)
- Parameters:
b- WebIDL type:PxBounds3[Const, Ref]- Returns:
- WebIDL type: boolean
-
intersects1D
public boolean intersects1D(PxBounds3 b, int axis)
- Parameters:
b- WebIDL type:PxBounds3[Const, Ref]axis- WebIDL type: unsigned long- Returns:
- WebIDL type: boolean
-
contains
public boolean contains(PxVec3 v)
- Parameters:
v- WebIDL type:PxVec3[Const, Ref]- Returns:
- WebIDL type: boolean
-
isInside
public boolean isInside(PxBounds3 box)
- Parameters:
box- WebIDL type:PxBounds3[Const, Ref]- Returns:
- WebIDL type: boolean
-
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
-
-