Package org.lwjgl.openxr
Class XrHandCapsuleFB
- All Implemented Interfaces:
Pointer
struct XrHandCapsuleFB {
{@link XrVector3f XrVector3f} points[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB];
float radius;
XrHandJointEXT joint;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrHandCapsuleFB
(ByteBuffer container) Creates aXrHandCapsuleFB
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHandCapsuleFB
create
(long address) Returns a newXrHandCapsuleFB
instance for the specified memory address.static XrHandCapsuleFB.Buffer
create
(long address, int capacity) Create aXrHandCapsuleFB.Buffer
instance at the specified memory.static @Nullable XrHandCapsuleFB
createSafe
(long address) static @Nullable XrHandCapsuleFB.Buffer
createSafe
(long address, int capacity) int
joint()
static int
njoint
(long struct) Unsafe version ofjoint()
.static XrVector3f.Buffer
npoints
(long struct) Unsafe version ofpoints()
.static XrVector3f
npoints
(long struct, int index) Unsafe version ofpoints
.static float
nradius
(long struct) Unsafe version ofradius()
.points()
points
(int index) float
radius()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
POINTS
public static final int POINTSThe struct member offsets. -
RADIUS
public static final int RADIUSThe struct member offsets. -
JOINT
public static final int JOINTThe struct member offsets.
-
-
Constructor Details
-
XrHandCapsuleFB
Creates aXrHandCapsuleFB
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrHandCapsuleFB>
-
points
- Returns:
- a
XrVector3f
.Buffer view of thepoints
field.
-
points
- Returns:
- a
XrVector3f
view of the struct at the specified index of thepoints
field.
-
radius
public float radius()- Returns:
- the value of the
radius
field.
-
joint
public int joint()- Returns:
- the value of the
joint
field.
-
create
Returns a newXrHandCapsuleFB
instance for the specified memory address. -
createSafe
-
create
Create aXrHandCapsuleFB.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
npoints
Unsafe version ofpoints()
. -
npoints
Unsafe version ofpoints
. -
nradius
public static float nradius(long struct) Unsafe version ofradius()
. -
njoint
public static int njoint(long struct) Unsafe version ofjoint()
.
-