java.lang.Object
physx.NativeObject
physx.common.PxQuat
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxQuatarrayGet(long baseAddress, int index) static PxQuatcreateAt(long address) static PxQuatcreateAt(long address, float r) static PxQuatcreateAt(long address, float nx, float ny, float nz, float nw) static PxQuatstatic PxQuatcreateAt(long address, PxIDENTITYEnum r) static PxQuatstatic <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate, float r) static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate, float nx, float ny, float nz, float nw) static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate, float angleRadians, PxVec3 unitAxis) static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxIDENTITYEnum r) static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxMat33 m) voiddestroy()floatfloatgetAngle()floatfloatgetW()floatgetX()floatgetY()floatgetZ()booleanisFinite()booleanbooleanisSane()booleanisUnit()floatfloatfloatvoidsetW(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 Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxQuat
protected PxQuat(long address) -
PxQuat
public PxQuat() -
PxQuat
- Parameters:
r- WebIDL type:PxIDENTITYEnum[enum]
-
PxQuat
public PxQuat(float nx, float ny, float nz, float nw) - Parameters:
nx- WebIDL type: floatny- WebIDL type: floatnz- WebIDL type: floatnw- WebIDL type: float
-
PxQuat
- Parameters:
angleRadians- WebIDL type: floatunitAxis- WebIDL type:PxVec3[Const, Ref]
-
PxQuat
public PxQuat(float r) - Parameters:
r- WebIDL type: float
-
PxQuat
- Parameters:
m- WebIDL type:PxMat33[Const, Ref]
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxQuat
-
createAt
- 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
- Parameters:
address- Pre-allocated memory, where the object is created.r- WebIDL type:PxIDENTITYEnum[enum]- Returns:
- Stack allocated object of PxQuat
-
createAt
public static <T> PxQuat createAt(T allocator, NativeObject.Allocator<T> allocate, PxIDENTITYEnum r) - 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.r- WebIDL type:PxIDENTITYEnum[enum]- Returns:
- Stack allocated object of PxQuat
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.nx- WebIDL type: floatny- WebIDL type: floatnz- WebIDL type: floatnw- WebIDL type: float- Returns:
- Stack allocated object of PxQuat
-
createAt
public static <T> PxQuat createAt(T allocator, NativeObject.Allocator<T> allocate, float nx, float ny, float nz, float nw) - 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.nx- WebIDL type: floatny- WebIDL type: floatnz- WebIDL type: floatnw- WebIDL type: float- Returns:
- Stack allocated object of PxQuat
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.angleRadians- WebIDL type: floatunitAxis- WebIDL type:PxVec3[Const, Ref]- Returns:
- Stack allocated object of PxQuat
-
createAt
public static <T> PxQuat createAt(T allocator, NativeObject.Allocator<T> allocate, float angleRadians, PxVec3 unitAxis) - 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.angleRadians- WebIDL type: floatunitAxis- WebIDL type:PxVec3[Const, Ref]- Returns:
- Stack allocated object of PxQuat
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.r- WebIDL type: float- Returns:
- Stack allocated object of PxQuat
-
createAt
- 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.r- WebIDL type: float- Returns:
- Stack allocated object of PxQuat
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.m- WebIDL type:PxMat33[Const, Ref]- Returns:
- Stack allocated object of PxQuat
-
createAt
- 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.m- WebIDL type:PxMat33[Const, Ref]- 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
-
isIdentity
public boolean isIdentity()- Returns:
- WebIDL type: boolean
-
isFinite
public boolean isFinite()- Returns:
- WebIDL type: boolean
-
isUnit
public boolean isUnit()- Returns:
- WebIDL type: boolean
-
isSane
public boolean isSane()- Returns:
- WebIDL type: boolean
-
getAngle
public float getAngle()- Returns:
- WebIDL type: float
-
getAngle
- Parameters:
q- WebIDL type:PxQuat[Const, Ref]- Returns:
- WebIDL type: float
-
magnitudeSquared
public float magnitudeSquared()- Returns:
- WebIDL type: float
-
dot
- Parameters:
q- WebIDL type:PxQuat[Const, Ref]- Returns:
- WebIDL type: float
-
getNormalized
- Returns:
- WebIDL type:
PxQuat[Value]
-
magnitude
public float magnitude()- Returns:
- WebIDL type: float
-
normalize
public float normalize()- Returns:
- WebIDL type: float
-
getConjugate
- Returns:
- WebIDL type:
PxQuat[Value]
-
getImaginaryPart
- Returns:
- WebIDL type:
PxVec3[Value]
-
getBasisVector0
- Returns:
- WebIDL type:
PxVec3[Value]
-
getBasisVector1
- Returns:
- WebIDL type:
PxVec3[Value]
-
getBasisVector2
- Returns:
- WebIDL type:
PxVec3[Value]
-
rotate
-
rotateInv
-