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.
Layout
struct ovrPoseStatef {ovrPosefThePose();ovrVector3fAngularVelocity();ovrVector3fLinearVelocity();ovrVector3fAngularAcceleration();ovrVector3fLinearAcceleration(); char[4]; doubleTimeInSeconds(); }
-
-
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 Deprecated Methods Modifier and Type Method Description OVRVector3fAngularAcceleration()angular acceleration in radians per second per secondOVRVector3fAngularVelocity()angular velocity in radians per secondstatic OVRPoseStatefcalloc()Returns a newOVRPoseStatefinstance allocated withmemCalloc.static OVRPoseStatef.Buffercalloc(int capacity)Returns a newOVRPoseStatef.Bufferinstance allocated withmemCalloc.static OVRPoseStatef.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRPoseStatefcalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRPoseStatefcallocStack()Deprecated.static OVRPoseStatef.BuffercallocStack(int capacity)Deprecated.static OVRPoseStatef.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRPoseStatefcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()acceleration in meters per second per secondOVRVector3fLinearVelocity()velocity in meters per secondstatic OVRPoseStatefmalloc()Returns a newOVRPoseStatefinstance allocated withmemAlloc.static OVRPoseStatef.Buffermalloc(int capacity)Returns a newOVRPoseStatef.Bufferinstance allocated withmemAlloc.static OVRPoseStatef.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStack.static OVRPoseStatefmalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.static OVRPoseStatefmallocStack()Deprecated.static OVRPoseStatef.BuffermallocStack(int capacity)Deprecated.static OVRPoseStatef.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRPoseStatefmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()position and orientationdoubleTimeInSeconds()absolute time that this pose refers to.
-
-
-
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
-
ThePose
public OVRPosef ThePose()
position and orientation
-
AngularVelocity
public OVRVector3f AngularVelocity()
angular velocity in radians per second
-
LinearVelocity
public OVRVector3f LinearVelocity()
velocity in meters per second
-
AngularAcceleration
public OVRVector3f AngularAcceleration()
angular acceleration in radians per second per second
-
LinearAcceleration
public OVRVector3f LinearAcceleration()
acceleration in meters per second per second
-
TimeInSeconds
public double TimeInSeconds()
absolute time that this pose refers to. SeeGetTimeInSeconds
-
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
@Deprecated public static OVRPoseStatef mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRPoseStatef callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRPoseStatef mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRPoseStatef callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRPoseStatef.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRPoseStatef.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRPoseStatef.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRPoseStatef.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRPoseStatef malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRPoseStatef calloc(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
-
malloc
public static OVRPoseStatef.Buffer malloc(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
-
calloc
public static OVRPoseStatef.Buffer calloc(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().
-
-