Package org.lwjgl.openxr
Class XrHandCapsuleFB
- All Implemented Interfaces:
Pointer
struct XrHandCapsuleFB {
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aXrHandCapsuleFBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHandCapsuleFBcreate(long address) Returns a newXrHandCapsuleFBinstance for the specified memory address.static XrHandCapsuleFB.Buffercreate(long address, int capacity) Create aXrHandCapsuleFB.Bufferinstance at the specified memory.static @Nullable XrHandCapsuleFBcreateSafe(long address) static @Nullable XrHandCapsuleFB.BuffercreateSafe(long address, int capacity) intjoint()static intnjoint(long struct) Unsafe version ofjoint().static XrVector3f.Buffernpoints(long struct) Unsafe version ofpoints().static XrVector3fnpoints(long struct, int index) Unsafe version ofpoints.static floatnradius(long struct) Unsafe version ofradius().points()points(int index) floatradius()intsizeof()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 aXrHandCapsuleFBinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrHandCapsuleFB>
-
points
- Returns:
- a
XrVector3f.Buffer view of thepointsfield.
-
points
- Returns:
- a
XrVector3fview of the struct at the specified index of thepointsfield.
-
radius
public float radius()- Returns:
- the value of the
radiusfield.
-
joint
public int joint()- Returns:
- the value of the
jointfield.
-
create
Returns a newXrHandCapsuleFBinstance for the specified memory address. -
createSafe
-
create
Create aXrHandCapsuleFB.Bufferinstance 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().
-