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