Package org.lwjgl.openvr
Class HmdVector3d
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.HmdVector3d
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HmdVector3d extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct HmdVector3d_t { double v[3]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHmdVector3d.BufferAn array ofHmdVector3dstructs.
-
Constructor Summary
Constructors Constructor Description HmdVector3d(java.nio.ByteBuffer container)Creates aHmdVector3dinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HmdVector3dcalloc()Returns a newHmdVector3dinstance allocated withmemCalloc.static HmdVector3d.Buffercalloc(int capacity)Returns a newHmdVector3d.Bufferinstance allocated withmemCalloc.static HmdVector3dcallocStack()Returns a newHmdVector3dinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static HmdVector3d.BuffercallocStack(int capacity)Returns a newHmdVector3d.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static HmdVector3d.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdVector3dcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newHmdVector3dinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdVector3dcreate()Returns a newHmdVector3dinstance allocated withBufferUtils.static HmdVector3d.Buffercreate(int capacity)Returns a newHmdVector3d.Bufferinstance allocated withBufferUtils.static HmdVector3dcreate(long address)Returns a newHmdVector3dinstance for the specified memory address.static HmdVector3d.Buffercreate(long address, int capacity)Create aHmdVector3d.Bufferinstance at the specified memory.static HmdVector3dcreateSafe(long address)static HmdVector3d.BuffercreateSafe(long address, int capacity)static HmdVector3dmalloc()Returns a newHmdVector3dinstance allocated withmemAlloc.static HmdVector3d.Buffermalloc(int capacity)Returns a newHmdVector3d.Bufferinstance allocated withmemAlloc.static HmdVector3dmallocStack()Returns a newHmdVector3dinstance allocated on the thread-localMemoryStack.static HmdVector3d.BuffermallocStack(int capacity)Returns a newHmdVector3d.Bufferinstance allocated on the thread-localMemoryStack.static HmdVector3d.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStack.static HmdVector3dmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newHmdVector3dinstance allocated on the specifiedMemoryStack.static java.nio.DoubleBuffernv(long struct)Unsafe version ofv().static doublenv(long struct, int index)Unsafe version ofv.static voidnv(long struct, int index, double value)Unsafe version ofv.static voidnv(long struct, java.nio.DoubleBuffer value)Unsafe version ofv.HmdVector3dset(HmdVector3d src)Copies the specified struct data to this struct.intsizeof()java.nio.DoubleBufferv()Returns aDoubleBufferview of thevfield.doublev(int index)Returns the value at the specified index of thevfield.HmdVector3dv(int index, double value)Sets the specified value at the specified index of thevfield.HmdVector3dv(java.nio.DoubleBuffer value)Copies the specifiedDoubleBufferto thevfield.
-
-
-
Constructor Detail
-
HmdVector3d
public HmdVector3d(java.nio.ByteBuffer container)
Creates aHmdVector3dinstance 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
-
v
public java.nio.DoubleBuffer v()
Returns aDoubleBufferview of thevfield.
-
v
public double v(int index)
Returns the value at the specified index of thevfield.
-
v
public HmdVector3d v(java.nio.DoubleBuffer value)
Copies the specifiedDoubleBufferto thevfield.
-
v
public HmdVector3d v(int index, double value)
Sets the specified value at the specified index of thevfield.
-
set
public HmdVector3d set(HmdVector3d src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static HmdVector3d malloc()
Returns a newHmdVector3dinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static HmdVector3d calloc()
Returns a newHmdVector3dinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static HmdVector3d create()
Returns a newHmdVector3dinstance allocated withBufferUtils.
-
create
public static HmdVector3d create(long address)
Returns a newHmdVector3dinstance for the specified memory address.
-
createSafe
@Nullable public static HmdVector3d createSafe(long address)
-
malloc
public static HmdVector3d.Buffer malloc(int capacity)
Returns a newHmdVector3d.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static HmdVector3d.Buffer calloc(int capacity)
Returns a newHmdVector3d.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static HmdVector3d.Buffer create(int capacity)
Returns a newHmdVector3d.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static HmdVector3d.Buffer create(long address, int capacity)
Create aHmdVector3d.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static HmdVector3d.Buffer createSafe(long address, int capacity)
-
mallocStack
public static HmdVector3d mallocStack()
Returns a newHmdVector3dinstance allocated on the thread-localMemoryStack.
-
callocStack
public static HmdVector3d callocStack()
Returns a newHmdVector3dinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static HmdVector3d mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector3dinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static HmdVector3d callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector3dinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static HmdVector3d.Buffer mallocStack(int capacity)
Returns a newHmdVector3d.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static HmdVector3d.Buffer callocStack(int capacity)
Returns a newHmdVector3d.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static HmdVector3d.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static HmdVector3d.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nv
public static java.nio.DoubleBuffer nv(long struct)
Unsafe version ofv().
-
nv
public static double nv(long struct, int index)Unsafe version ofv.
-
nv
public static void nv(long struct, java.nio.DoubleBuffer value)Unsafe version ofv.
-
nv
public static void nv(long struct, int index, double value)Unsafe version ofv.
-
-