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, isExternallyAllocated
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxQuatcreateAt(long address)static PxQuatcreateAt(long address, float x, float y, float z, float w)static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate)static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate, float x, float y, float z, float w)voiddestroy()floatgetW()floatgetX()floatgetY()floatgetZ()voidsetW(float value)voidsetX(float value)voidsetY(float value)voidsetZ(float value)static PxQuatwrapPointer(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 PxQuat wrapPointer(long address)
-
createAt
public static PxQuat createAt(long address)
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxQuat
-
createAt
public static <T> PxQuat 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 PxQuat
-
createAt
public static PxQuat createAt(long address, float x, float y, float z, float w)
- Parameters:
address- Pre-allocated memory, where the object is created.x- WebIDL type: floaty- WebIDL type: floatz- WebIDL type: floatw- WebIDL type: float- Returns:
- Stack allocated object of PxQuat
-
createAt
public static <T> PxQuat createAt(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- WebIDL type: floaty- WebIDL type: floatz- WebIDL type: floatw- WebIDL type: float- Returns:
- Stack allocated object of PxQuat
-
destroy
public void destroy()
-
getX
public float getX()
- Returns:
- WebIDL type: float
-
setX
public void setX(float value)
- Parameters:
value- WebIDL type: float
-
getY
public float getY()
- Returns:
- WebIDL type: float
-
setY
public void setY(float value)
- Parameters:
value- WebIDL type: float
-
getZ
public float getZ()
- Returns:
- WebIDL type: float
-
setZ
public void setZ(float value)
- Parameters:
value- WebIDL type: float
-
getW
public float getW()
- Returns:
- WebIDL type: float
-
setW
public void setW(float value)
- Parameters:
value- WebIDL type: float
-
-