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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRPoseStatef extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA 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. SeeGetTimeInSeconds
Layout
struct ovrPoseStatef {ovrPosefThePose;ovrVector3fAngularVelocity;ovrVector3fLinearVelocity;ovrVector3fAngularAcceleration;ovrVector3fLinearAcceleration; char[4]; double TimeInSeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRPoseStatef.BufferAn array ofOVRPoseStatefstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intANGULARACCELERATION
ANGULARVELOCITY
LINEARACCELERATION
LINEARVELOCITYThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTHEPOSE
TIMEINSECONDSThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRPoseStatefcallocStack(org.lwjgl.system.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.static OVRPoseStatef.Buffercreate(long address, int capacity)Create aOVRPoseStatef.Bufferinstance at the specified memory.static OVRPoseStatefcreateSafe(long address)static OVRPoseStatef.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStack.static OVRPoseStatefmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.static OVRVector3fnAngularAcceleration(long struct)Unsafe version ofAngularAcceleration().static OVRVector3fnAngularVelocity(long struct)Unsafe version ofAngularVelocity().static OVRVector3fnLinearAcceleration(long struct)Unsafe version ofLinearAcceleration().static OVRVector3fnLinearVelocity(long struct)Unsafe version ofLinearVelocity().static OVRPosefnThePose(long struct)Unsafe version ofThePose().static doublenTimeInSeconds(long struct)Unsafe version ofTimeInSeconds().intsizeof()OVRPosefThePose()Returns aOVRPosefview of theThePosefield.doubleTimeInSeconds()Returns the value of theTimeInSecondsfield.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
createSafe
@Nullable public static OVRPoseStatef createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRPoseStatef.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRPoseStatef callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
nAngularVelocity
public static OVRVector3f nAngularVelocity(long struct)
Unsafe version ofAngularVelocity().
-
nLinearVelocity
public static OVRVector3f nLinearVelocity(long struct)
Unsafe version ofLinearVelocity().
-
nAngularAcceleration
public static OVRVector3f nAngularAcceleration(long struct)
Unsafe version ofAngularAcceleration().
-
nLinearAcceleration
public static OVRVector3f nLinearAcceleration(long struct)
Unsafe version ofLinearAcceleration().
-
nTimeInSeconds
public static double nTimeInSeconds(long struct)
Unsafe version ofTimeInSeconds().
-
-