Package org.lwjgl.openvr
Class ImuSample
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.ImuSample
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class ImuSample extends org.lwjgl.system.Struct
Layout
struct ImuSample_t { double fSampleTime;
HmdVector3d_t
vAccel;HmdVector3d_t
vGyro; uint32_t unOffScaleFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImuSample.Buffer
An array ofImuSample
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FSAMPLETIME
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
UNOFFSCALEFLAGS
VACCEL
VGYROThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description ImuSample(java.nio.ByteBuffer container)
Creates aImuSample
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImuSample
create(long address)
Returns a newImuSample
instance for the specified memory address.static ImuSample.Buffer
create(long address, int capacity)
Create aImuSample.Buffer
instance at the specified memory.static ImuSample
createSafe(long address)
static ImuSample.Buffer
createSafe(long address, int capacity)
double
fSampleTime()
Returns the value of thefSampleTime
field.static double
nfSampleTime(long struct)
Unsafe version offSampleTime()
.static int
nunOffScaleFlags(long struct)
Unsafe version ofunOffScaleFlags()
.static HmdVector3d
nvAccel(long struct)
Unsafe version ofvAccel()
.static HmdVector3d
nvGyro(long struct)
Unsafe version ofvGyro()
.int
sizeof()
int
unOffScaleFlags()
Returns the value of theunOffScaleFlags
field.HmdVector3d
vAccel()
Returns aHmdVector3d
view of thevAccel
field.HmdVector3d
vGyro()
Returns aHmdVector3d
view of thevGyro
field.
-
-
-
Constructor Detail
-
ImuSample
public ImuSample(java.nio.ByteBuffer container)
Creates aImuSample
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
-
fSampleTime
public double fSampleTime()
Returns the value of thefSampleTime
field.
-
vAccel
public HmdVector3d vAccel()
Returns aHmdVector3d
view of thevAccel
field.
-
vGyro
public HmdVector3d vGyro()
Returns aHmdVector3d
view of thevGyro
field.
-
unOffScaleFlags
public int unOffScaleFlags()
Returns the value of theunOffScaleFlags
field.
-
create
public static ImuSample create(long address)
Returns a newImuSample
instance for the specified memory address.
-
createSafe
@Nullable public static ImuSample createSafe(long address)
-
create
public static ImuSample.Buffer create(long address, int capacity)
Create aImuSample.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static ImuSample.Buffer createSafe(long address, int capacity)
-
nfSampleTime
public static double nfSampleTime(long struct)
Unsafe version offSampleTime()
.
-
nvAccel
public static HmdVector3d nvAccel(long struct)
Unsafe version ofvAccel()
.
-
nvGyro
public static HmdVector3d nvGyro(long struct)
Unsafe version ofvGyro()
.
-
nunOffScaleFlags
public static int nunOffScaleFlags(long struct)
Unsafe version ofunOffScaleFlags()
.
-
-