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 x, float y, float z, float w) static PxQuatcreateAt(long address, PxIDENTITYEnum r) 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) static <T> PxQuatcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxIDENTITYEnum r) 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 x, float y, float z, float w) - Parameters:
x- WebIDL type: floaty- WebIDL type: floatz- WebIDL type: floatw- WebIDL type: float
-
-
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.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
-
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
-