Package physx.geomutils
Class PxBoxGeometry
- java.lang.Object
-
- physx.NativeObject
-
- physx.geomutils.PxGeometry
-
- physx.geomutils.PxBoxGeometry
-
public class PxBoxGeometry extends PxGeometry
-
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxBoxGeometry()PxBoxGeometry(float hx, float hy, float hz)protectedPxBoxGeometry(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxBoxGeometrycreateAt(long address, float hx, float hy, float hz)static <T> PxBoxGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate, float hx, float hy, float hz)voiddestroy()static PxBoxGeometrywrapPointer(long address)-
Methods inherited from class physx.geomutils.PxGeometry
getType
-
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 PxBoxGeometry wrapPointer(long address)
-
createAt
public static PxBoxGeometry createAt(long address, float hx, float hy, float hz)
- Parameters:
address- Pre-allocated memory, where the object is created.hx- WebIDL type: floathy- WebIDL type: floathz- WebIDL type: float- Returns:
- Stack allocated object of PxBoxGeometry
-
createAt
public static <T> PxBoxGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, float hx, float hy, float hz)
- 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.hx- WebIDL type: floathy- WebIDL type: floathz- WebIDL type: float- Returns:
- Stack allocated object of PxBoxGeometry
-
destroy
public void destroy()
- Overrides:
destroyin classPxGeometry
-
-