Package org.lwjgl.openxr
Class XrHandCapsuleFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandCapsuleFB
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class XrHandCapsuleFB extends org.lwjgl.system.StructA 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 can be attached to the same joint.
Valid Usage (Implicit)
- The
XR_FB_hand_tracking_capsulesextension must be enabled prior to usingXrHandCapsuleFB
See Also
XrHandTrackingCapsulesStateFB,XrVector3fLayout
struct XrHandCapsuleFB {XrVector3fpoints[XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT]; float radius; XrHandJointEXT joint; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandCapsuleFB.BufferAn array ofXrHandCapsuleFBstructs.
-
Constructor Summary
Constructors Constructor Description XrHandCapsuleFB(java.nio.ByteBuffer container)Creates aXrHandCapsuleFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 XrHandCapsuleFBcreateSafe(long address)static 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().XrVector3f.Bufferpoints()XrVector3fpoints(int index)floatradius()intsizeof()
-
-
-
Constructor Detail
-
XrHandCapsuleFB
public XrHandCapsuleFB(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
points
public XrVector3f.Buffer points()
- Returns:
- a
XrVector3f.Buffer view of thepointsfield.
-
points
public XrVector3f points(int index)
- 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
public static XrHandCapsuleFB create(long address)
Returns a newXrHandCapsuleFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandCapsuleFB createSafe(long address)
-
create
public static XrHandCapsuleFB.Buffer create(long address, int capacity)
Create aXrHandCapsuleFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandCapsuleFB.Buffer createSafe(long address, int capacity)
-
npoints
public static XrVector3f.Buffer npoints(long struct)
Unsafe version ofpoints().
-
npoints
public static XrVector3f npoints(long struct, int index)
Unsafe version ofpoints.
-
nradius
public static float nradius(long struct)
Unsafe version ofradius().
-
njoint
public static int njoint(long struct)
Unsafe version ofjoint().
-
-