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.NativeResource
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. SeeGetTimeInSeconds
Layout
struct ovrPoseStatef {
ovrPosef
ThePose;ovrVector3f
AngularVelocity;ovrVector3f
LinearVelocity;ovrVector3f
AngularAcceleration;ovrVector3f
LinearAcceleration; char[4]; double TimeInSeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRPoseStatef.Buffer
An array ofOVRPoseStatef
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ANGULARACCELERATION
ANGULARVELOCITY
LINEARACCELERATION
LINEARVELOCITYThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
THEPOSE
TIMEINSECONDSThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRPoseStatef
callocStack(org.lwjgl.system.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.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)
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, org.lwjgl.system.MemoryStack stack)
Returns a newOVRPoseStatef.Buffer
instance allocated on the specifiedMemoryStack
.static OVRPoseStatef
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
.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()
OVRPosef
ThePose()
Returns aOVRPosef
view of theThePose
field.double
TimeInSeconds()
Returns the value of theTimeInSeconds
field.
-
-
-
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()
- Specified by:
sizeof
in classorg.lwjgl.system.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.
-
createSafe
@Nullable public static OVRPoseStatef createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRPoseStatef.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newOVRPoseStatef
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRPoseStatef callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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()
.
-
-