Package physx.common
Class PxQuat
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxQuat
-
public class PxQuat 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, isStackAllocated
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()floatgetW()floatgetX()floatgetY()floatgetZ()static PxQuatmalloc(long address)static PxQuatmalloc(long address, float x, float y, float z, float w)static <T> PxQuatmalloc(T allocator, NativeObject.Allocator<T> allocate)static <T> PxQuatmalloc(T allocator, NativeObject.Allocator<T> allocate, float x, float y, float z, float w)voidsetW(float value)voidsetX(float value)voidsetY(float value)voidsetZ(float value)static PxQuatwrapPointer(long address)-
Methods inherited from class physx.NativeObject
getAddress
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxQuat wrapPointer(long address)
-
malloc
public static PxQuat malloc(long address)
- Parameters:
address- where the object is allocated- Returns:
- Stack allocated object of PxQuat
-
malloc
public static <T> PxQuat malloc(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 PxQuat
-
malloc
public static PxQuat malloc(long address, float x, float y, float z, float w)
- Parameters:
address- where the object is allocatedx- floaty- floatz- floatw- float- Returns:
- Stack allocated object of PxQuat
-
malloc
public static <T> PxQuat malloc(T allocator, NativeObject.Allocator<T> allocate, float x, float y, float z, float w)
- 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.x- floaty- floatz- floatw- float- Returns:
- Stack allocated object of PxQuat
-
destroy
public void destroy()
-
getX
public float getX()
- Returns:
- float
-
setX
public void setX(float value)
- Parameters:
value- float
-
getY
public float getY()
- Returns:
- float
-
setY
public void setY(float value)
- Parameters:
value- float
-
getZ
public float getZ()
- Returns:
- float
-
setZ
public void setZ(float value)
- Parameters:
value- float
-
getW
public float getW()
- Returns:
- float
-
setW
public void setW(float value)
- Parameters:
value- float
-
-