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 {ovrPosefThePose;ovrVector3fAngularVelocity;ovrVector3fLinearVelocity;ovrVector3fAngularAcceleration;ovrVector3fLinearAcceleration; double TimeInSeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRPoseStatef.BufferAn array ofOVRPoseStatefstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aOVRPoseStatefinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description OVRVector3fAngularAcceleration()Returns aOVRVector3fview of theAngularAccelerationfield.OVRVector3fAngularVelocity()Returns aOVRVector3fview of theAngularVelocityfield.static OVRPoseStatefcalloc()Returns a newOVRPoseStatefinstance allocated withmemCalloc.static OVRPoseStatef.Buffercalloc(int capacity)Returns a newOVRPoseStatef.Bufferinstance allocated withmemCalloc.static OVRPoseStatefcallocStack()Returns a newOVRPoseStatefinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRPoseStatef.BuffercallocStack(int capacity)Returns a newOVRPoseStatef.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRPoseStatef.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRPoseStatefcallocStack(MemoryStack stack)Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRPoseStatefcreate()Returns a newOVRPoseStatefinstance allocated withBufferUtils.static OVRPoseStatef.Buffercreate(int capacity)Returns a newOVRPoseStatef.Bufferinstance allocated withBufferUtils.static OVRPoseStatefcreate(long address)Returns a newOVRPoseStatefinstance for the specified memory address ornullif the address isNULL.static OVRPoseStatef.Buffercreate(long address, int capacity)Create aOVRPoseStatef.Bufferinstance at the specified memory.OVRVector3fLinearAcceleration()Returns aOVRVector3fview of theLinearAccelerationfield.OVRVector3fLinearVelocity()Returns aOVRVector3fview of theLinearVelocityfield.static OVRPoseStatefmalloc()Returns a newOVRPoseStatefinstance allocated withmemAlloc.static OVRPoseStatef.Buffermalloc(int capacity)Returns a newOVRPoseStatef.Bufferinstance allocated withmemAlloc.static OVRPoseStatefmallocStack()Returns a newOVRPoseStatefinstance allocated on the thread-localMemoryStack.static OVRPoseStatef.BuffermallocStack(int capacity)Returns a newOVRPoseStatef.Bufferinstance allocated on the thread-localMemoryStack.static OVRPoseStatef.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStack.static OVRPoseStatefmallocStack(MemoryStack stack)Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.intsizeof()Returns thesizeof(struct).OVRPosefThePose()Returns aOVRPosefview of theThePosefield.doubleTimeInSeconds()Returns the value of theTimeInSecondsfield.-
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 aOVRPoseStatefinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturns thesizeof(struct).
-
AngularVelocity
public OVRVector3f AngularVelocity()
Returns aOVRVector3fview of theAngularVelocityfield.
-
LinearVelocity
public OVRVector3f LinearVelocity()
Returns aOVRVector3fview of theLinearVelocityfield.
-
AngularAcceleration
public OVRVector3f AngularAcceleration()
Returns aOVRVector3fview of theAngularAccelerationfield.
-
LinearAcceleration
public OVRVector3f LinearAcceleration()
Returns aOVRVector3fview of theLinearAccelerationfield.
-
TimeInSeconds
public double TimeInSeconds()
Returns the value of theTimeInSecondsfield.
-
malloc
public static OVRPoseStatef malloc()
Returns a newOVRPoseStatefinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRPoseStatef calloc()
Returns a newOVRPoseStatefinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRPoseStatef create()
Returns a newOVRPoseStatefinstance allocated withBufferUtils.
-
create
public static OVRPoseStatef create(long address)
Returns a newOVRPoseStatefinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRPoseStatef.Buffer malloc(int capacity)
Returns a newOVRPoseStatef.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRPoseStatef.Buffer calloc(int capacity)
Returns a newOVRPoseStatef.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRPoseStatef.Buffer create(int capacity)
Returns a newOVRPoseStatef.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRPoseStatef.Buffer create(long address, int capacity)
Create aOVRPoseStatef.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRPoseStatef mallocStack()
Returns a newOVRPoseStatefinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRPoseStatef callocStack()
Returns a newOVRPoseStatefinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRPoseStatef mallocStack(MemoryStack stack)
Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRPoseStatef callocStack(MemoryStack stack)
Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRPoseStatef.Buffer callocStack(int capacity)
Returns a newOVRPoseStatef.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRPoseStatef.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRPoseStatef.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-