Package org.lwjgl.ovr
Class OVRPoseStatef
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRPoseStatef
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRPoseStatef extends Struct
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.
Member documentation
ThePose
– position and orientationAngularVelocity
– angular velocity in radians per secondLinearVelocity
– velocity in meters per secondAngularAcceleration
– angular acceleration in radians per second per secondLinearAcceleration
– acceleration in meters per second per secondTimeInSeconds
– absolute time that this pose refers to. SeeOVR.ovr_GetTimeInSeconds()
Layout
struct ovrPoseStatef {
ovrPosef
ThePose;ovrVector3f
AngularVelocity;ovrVector3f
LinearVelocity;ovrVector3f
AngularAcceleration;ovrVector3f
LinearAcceleration; double TimeInSeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
OVRPoseStatef.Buffer
An array ofOVRPoseStatef
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description OVRPoseStatef(java.nio.ByteBuffer container)
Creates aOVRPoseStatef
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description OVRVector3f
AngularAcceleration()
Returns aOVRVector3f
view of theAngularAcceleration
field.OVRVector3f
AngularVelocity()
Returns aOVRVector3f
view of theAngularVelocity
field.static OVRPoseStatef
calloc()
Returns a newOVRPoseStatef
instance allocated withmemCalloc
.static OVRPoseStatef.Buffer
calloc(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated withmemCalloc
.static OVRPoseStatef
callocStack()
Returns a newOVRPoseStatef
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRPoseStatef.Buffer
callocStack(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRPoseStatef.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRPoseStatef
callocStack(MemoryStack stack)
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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 ornull
if the address isNULL
.static OVRPoseStatef.Buffer
create(long address, int capacity)
Create aOVRPoseStatef.Buffer
instance at the specified memory.OVRVector3f
LinearAcceleration()
Returns aOVRVector3f
view of theLinearAcceleration
field.OVRVector3f
LinearVelocity()
Returns aOVRVector3f
view of theLinearVelocity
field.static OVRPoseStatef
malloc()
Returns a newOVRPoseStatef
instance allocated withmemAlloc
.static OVRPoseStatef.Buffer
malloc(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated withmemAlloc
.static OVRPoseStatef
mallocStack()
Returns a newOVRPoseStatef
instance allocated on the thread-localMemoryStack
.static OVRPoseStatef.Buffer
mallocStack(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated on the thread-localMemoryStack
.static OVRPoseStatef.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
.static OVRPoseStatef
mallocStack(MemoryStack stack)
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
.int
sizeof()
Returns thesizeof(struct)
.OVRPosef
ThePose()
Returns aOVRPosef
view of theThePose
field.double
TimeInSeconds()
Returns the value of theTimeInSeconds
field.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRPoseStatef
public OVRPoseStatef(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
AngularVelocity
public OVRVector3f AngularVelocity()
Returns aOVRVector3f
view of theAngularVelocity
field.
-
LinearVelocity
public OVRVector3f LinearVelocity()
Returns aOVRVector3f
view of theLinearVelocity
field.
-
AngularAcceleration
public OVRVector3f AngularAcceleration()
Returns aOVRVector3f
view of theAngularAcceleration
field.
-
LinearAcceleration
public OVRVector3f LinearAcceleration()
Returns aOVRVector3f
view of theLinearAcceleration
field.
-
TimeInSeconds
public double TimeInSeconds()
Returns the value of theTimeInSeconds
field.
-
malloc
public static OVRPoseStatef malloc()
Returns a newOVRPoseStatef
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRPoseStatef calloc()
Returns a newOVRPoseStatef
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRPoseStatef create()
Returns a newOVRPoseStatef
instance allocated withBufferUtils
.
-
create
public static OVRPoseStatef create(long address)
Returns a newOVRPoseStatef
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static OVRPoseStatef.Buffer malloc(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRPoseStatef.Buffer calloc(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRPoseStatef.Buffer create(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRPoseStatef.Buffer create(long address, int capacity)
Create aOVRPoseStatef.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static OVRPoseStatef mallocStack()
Returns a newOVRPoseStatef
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRPoseStatef callocStack()
Returns a newOVRPoseStatef
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRPoseStatef mallocStack(MemoryStack stack)
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRPoseStatef callocStack(MemoryStack stack)
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRPoseStatef.Buffer mallocStack(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRPoseStatef.Buffer callocStack(int capacity)
Returns a newOVRPoseStatef.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRPoseStatef.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRPoseStatef.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-