Package org.lwjgl.openxr
Class XrHandJointVelocityEXT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrHandJointVelocityEXT,XrHandJointVelocityEXT.Buffer>
-
- org.lwjgl.openxr.XrHandJointVelocityEXT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrHandJointVelocityEXT>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrHandJointVelocityEXT
public static class XrHandJointVelocityEXT.Buffer extends org.lwjgl.system.StructBuffer<XrHandJointVelocityEXT,XrHandJointVelocityEXT.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrHandJointVelocityEXTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XrVector3fangularVelocity()XrHandJointVelocityEXT.BufferangularVelocity(java.util.function.Consumer<XrVector3f> consumer)Passes theXrHandJointVelocityEXT.angularVelocity()field to the specifiedConsumer.XrHandJointVelocityEXT.BufferangularVelocity(XrVector3f value)Copies the specifiedXrVector3fto theXrHandJointVelocityEXT.angularVelocity()field.XrVector3flinearVelocity()XrHandJointVelocityEXT.BufferlinearVelocity(java.util.function.Consumer<XrVector3f> consumer)Passes theXrHandJointVelocityEXT.linearVelocity()field to the specifiedConsumer.XrHandJointVelocityEXT.BufferlinearVelocity(XrVector3f value)Copies the specifiedXrVector3fto theXrHandJointVelocityEXT.linearVelocity()field.longvelocityFlags()XrHandJointVelocityEXT.BuffervelocityFlags(long value)Sets the specified value to theXrHandJointVelocityEXT.velocityFlags()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrHandJointVelocityEXT.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byXrHandJointVelocityEXT.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
velocityFlags
public long velocityFlags()
- Returns:
- the value of the
XrHandJointVelocityEXT.velocityFlags()field.
-
linearVelocity
public XrVector3f linearVelocity()
- Returns:
- a
XrVector3fview of theXrHandJointVelocityEXT.linearVelocity()field.
-
angularVelocity
public XrVector3f angularVelocity()
- Returns:
- a
XrVector3fview of theXrHandJointVelocityEXT.angularVelocity()field.
-
velocityFlags
public XrHandJointVelocityEXT.Buffer velocityFlags(long value)
Sets the specified value to theXrHandJointVelocityEXT.velocityFlags()field.
-
linearVelocity
public XrHandJointVelocityEXT.Buffer linearVelocity(XrVector3f value)
Copies the specifiedXrVector3fto theXrHandJointVelocityEXT.linearVelocity()field.
-
linearVelocity
public XrHandJointVelocityEXT.Buffer linearVelocity(java.util.function.Consumer<XrVector3f> consumer)
Passes theXrHandJointVelocityEXT.linearVelocity()field to the specifiedConsumer.
-
angularVelocity
public XrHandJointVelocityEXT.Buffer angularVelocity(XrVector3f value)
Copies the specifiedXrVector3fto theXrHandJointVelocityEXT.angularVelocity()field.
-
angularVelocity
public XrHandJointVelocityEXT.Buffer angularVelocity(java.util.function.Consumer<XrVector3f> consumer)
Passes theXrHandJointVelocityEXT.angularVelocity()field to the specifiedConsumer.
-
-