Package org.lwjgl.openxr
Class XrHandCapsuleFB
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrHandCapsuleFB>
org.lwjgl.openxr.XrHandCapsuleFB
- All Implemented Interfaces:
org.lwjgl.system.Pointer
A 3D capsule defined by two points and a radius.
Member Descriptions
pointsare the two points defining the capsule length.radiusis the radius of the capsule.jointis the hand joint that drives this capsuleās transform. Multiple capsules may be attached to the same joint.
Valid Usage (Implicit)
- The
XR_FB_hand_tracking_capsulesextension must be enabled prior to usingXrHandCapsuleFB
See Also
XrHandTrackingCapsulesStateFB, XrVector3f
Layout
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
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<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().
-