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.StructLayout
struct ImuSample_t { double fSampleTime;HmdVector3d_tvAccel;HmdVector3d_tvGyro; uint32_t unOffScaleFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImuSample.BufferAn array ofImuSamplestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFSAMPLETIMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUNOFFSCALEFLAGS
VACCEL
VGYROThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description ImuSample(java.nio.ByteBuffer container)Creates aImuSampleinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImuSamplecreate(long address)Returns a newImuSampleinstance for the specified memory address.static ImuSample.Buffercreate(long address, int capacity)Create aImuSample.Bufferinstance at the specified memory.static ImuSamplecreateSafe(long address)static ImuSample.BuffercreateSafe(long address, int capacity)doublefSampleTime()Returns the value of thefSampleTimefield.static doublenfSampleTime(long struct)Unsafe version offSampleTime().static intnunOffScaleFlags(long struct)Unsafe version ofunOffScaleFlags().static HmdVector3dnvAccel(long struct)Unsafe version ofvAccel().static HmdVector3dnvGyro(long struct)Unsafe version ofvGyro().intsizeof()intunOffScaleFlags()Returns the value of theunOffScaleFlagsfield.HmdVector3dvAccel()Returns aHmdVector3dview of thevAccelfield.HmdVector3dvGyro()Returns aHmdVector3dview of thevGyrofield.
-
-
-
Constructor Detail
-
ImuSample
public ImuSample(java.nio.ByteBuffer container)
Creates aImuSampleinstance 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
-
fSampleTime
public double fSampleTime()
Returns the value of thefSampleTimefield.
-
vAccel
public HmdVector3d vAccel()
Returns aHmdVector3dview of thevAccelfield.
-
vGyro
public HmdVector3d vGyro()
Returns aHmdVector3dview of thevGyrofield.
-
unOffScaleFlags
public int unOffScaleFlags()
Returns the value of theunOffScaleFlagsfield.
-
create
public static ImuSample create(long address)
Returns a newImuSampleinstance 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.Bufferinstance 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().
-
-