public class PxVec3 extends NativeObject
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
|
PxVec3() |
|
PxVec3(float x,
float y,
float z) |
protected |
PxVec3(long address) |
| Modifier and Type | Method and Description |
|---|---|
static PxVec3 |
createAt(long address) |
static PxVec3 |
createAt(long address,
float x,
float y,
float z) |
static <T> PxVec3 |
createAt(T allocator,
NativeObject.Allocator<T> allocate) |
static <T> PxVec3 |
createAt(T allocator,
NativeObject.Allocator<T> allocate,
float x,
float y,
float z) |
void |
destroy() |
float |
getX() |
float |
getY() |
float |
getZ() |
void |
setX(float value) |
void |
setY(float value) |
void |
setZ(float value) |
static PxVec3 |
wrapPointer(long address) |
checkNotNull, equals, getAddress, hashCodepublic static final int SIZEOF
public static final int ALIGNOF
protected PxVec3(long address)
public PxVec3()
public PxVec3(float x,
float y,
float z)
x - WebIDL type: floaty - WebIDL type: floatz - WebIDL type: floatpublic static PxVec3 wrapPointer(long address)
public static PxVec3 createAt(long address)
address - Pre-allocated memory, where the object is created.public static <T> PxVec3 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 PxVec3 createAt(long address, float x, float y, float z)
address - Pre-allocated memory, where the object is created.x - WebIDL type: floaty - WebIDL type: floatz - WebIDL type: floatpublic static <T> PxVec3 createAt(T allocator, NativeObject.Allocator<T> allocate, float x, float y, float z)
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.x - WebIDL type: floaty - WebIDL type: floatz - WebIDL type: floatpublic void destroy()
public float getX()
public void setX(float value)
value - WebIDL type: floatpublic float getY()
public void setY(float value)
value - WebIDL type: floatpublic float getZ()
public void setZ(float value)
value - WebIDL type: float