Package org.lwjgl.ovr
Class OVRPoseStatef
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
A full pose (rigid body) configuration with first and second derivatives.
Body refers to any object for which ovrPoseStatef is providing data. It can be the HMD, Touch controller, sensor or something else. The context depends on the usage of the struct.
Layout
struct ovrPoseStatef {
ovrPosef
ThePose()
;
ovrVector3f
AngularVelocity()
;
ovrVector3f
LinearVelocity()
;
ovrVector3f
AngularAcceleration()
;
ovrVector3f
LinearAcceleration()
;
char[4];
double TimeInSeconds()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRPoseStatef
(ByteBuffer container) Creates aOVRPoseStatef
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionangular acceleration in radians per second per secondangular velocity in radians per secondstatic OVRPoseStatef
calloc()
Returns a newOVRPoseStatef
instance allocated withmemCalloc
.static OVRPoseStatef.Buffer
calloc
(int capacity) Returns a newOVRPoseStatef.Buffer
instance allocated withmemCalloc
.static OVRPoseStatef.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRPoseStatef
calloc
(MemoryStack stack) Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRPoseStatef
Deprecated.static OVRPoseStatef.Buffer
callocStack
(int capacity) Deprecated.static OVRPoseStatef.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRPoseStatef
callocStack
(MemoryStack stack) Deprecated.static OVRPoseStatef
create()
Returns a newOVRPoseStatef
instance allocated withBufferUtils
.static OVRPoseStatef.Buffer
create
(int capacity) Returns a newOVRPoseStatef.Buffer
instance allocated withBufferUtils
.static OVRPoseStatef
create
(long address) Returns a newOVRPoseStatef
instance for the specified memory address.static OVRPoseStatef.Buffer
create
(long address, int capacity) Create aOVRPoseStatef.Buffer
instance at the specified memory.static OVRPoseStatef
createSafe
(long address) static OVRPoseStatef.Buffer
createSafe
(long address, int capacity) acceleration in meters per second per secondvelocity in meters per secondstatic OVRPoseStatef
malloc()
Returns a newOVRPoseStatef
instance allocated withmemAlloc
.static OVRPoseStatef.Buffer
malloc
(int capacity) Returns a newOVRPoseStatef.Buffer
instance allocated withmemAlloc
.static OVRPoseStatef.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
.static OVRPoseStatef
malloc
(MemoryStack stack) Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
.static OVRPoseStatef
Deprecated.static OVRPoseStatef.Buffer
mallocStack
(int capacity) Deprecated.static OVRPoseStatef.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRPoseStatef
mallocStack
(MemoryStack stack) Deprecated.static OVRVector3f
nAngularAcceleration
(long struct) Unsafe version ofAngularAcceleration()
.static OVRVector3f
nAngularVelocity
(long struct) Unsafe version ofAngularVelocity()
.static OVRVector3f
nLinearAcceleration
(long struct) Unsafe version ofLinearAcceleration()
.static OVRVector3f
nLinearVelocity
(long struct) Unsafe version ofLinearVelocity()
.static OVRPosef
nThePose
(long struct) Unsafe version ofThePose()
.static double
nTimeInSeconds
(long struct) Unsafe version ofTimeInSeconds()
.int
sizeof()
Returnssizeof(struct)
.ThePose()
position and orientationdouble
absolute time that this pose refers to.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
THEPOSE
public static final int THEPOSEThe struct member offsets. -
ANGULARVELOCITY
public static final int ANGULARVELOCITYThe struct member offsets. -
LINEARVELOCITY
public static final int LINEARVELOCITYThe struct member offsets. -
ANGULARACCELERATION
public static final int ANGULARACCELERATIONThe struct member offsets. -
LINEARACCELERATION
public static final int LINEARACCELERATIONThe struct member offsets. -
TIMEINSECONDS
public static final int TIMEINSECONDSThe struct member offsets.
-
-
Constructor Details
-
OVRPoseStatef
Creates aOVRPoseStatef
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<OVRPoseStatef>
-
ThePose
position and orientation -
AngularVelocity
angular velocity in radians per second -
LinearVelocity
velocity in meters per second -
AngularAcceleration
angular acceleration in radians per second per second -
LinearAcceleration
acceleration in meters per second per second -
TimeInSeconds
public double TimeInSeconds()absolute time that this pose refers to. SeeGetTimeInSeconds
-
malloc
Returns a newOVRPoseStatef
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRPoseStatef
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRPoseStatef
instance allocated withBufferUtils
. -
create
Returns a newOVRPoseStatef
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRPoseStatef.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRPoseStatef.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRPoseStatef.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRPoseStatef.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nThePose
Unsafe version ofThePose()
. -
nAngularVelocity
Unsafe version ofAngularVelocity()
. -
nLinearVelocity
Unsafe version ofLinearVelocity()
. -
nAngularAcceleration
Unsafe version ofAngularAcceleration()
. -
nLinearAcceleration
Unsafe version ofLinearAcceleration()
. -
nTimeInSeconds
public static double nTimeInSeconds(long struct) Unsafe version ofTimeInSeconds()
.
-