Record Class XrHandCapsuleFB
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrHandCapsuleFB
- All Implemented Interfaces:
IPointer
,IXrHandCapsuleFB
@ValueBasedCandidate
@UnsafeConstructor
public record XrHandCapsuleFB(@NotNull MemorySegment segment)
extends Record
implements IXrHandCapsuleFB
Represents a pointer to a XrHandCapsuleFB
structure in native memory.
Structure
typedef struct XrHandCapsuleFB {
XrVector3f
[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB] points
;
float radius
;
XrHandJointEXT
joint
;
} XrHandCapsuleFB;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofXrHandCapsuleFB
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final SequenceLayout
static final ValueLayout.OfFloat
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionXrHandCapsuleFB
(@NotNull MemorySegment segment) Creates an instance of aXrHandCapsuleFB
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHandCapsuleFB
static XrHandCapsuleFB.Ptr
static XrHandCapsuleFB
clone
(Arena arena, XrHandCapsuleFB src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
joint()
joint
(int value) points()
points
(XrVector3f.Ptr value) points
(@NotNull Consumer<XrVector3f.Ptr> consumer) pointsAt
(int index) void
pointsAt
(int index, XrVector3f value) @NotNull MemorySegment
float
radius()
radius
(float value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$points
-
PATH$radius
-
PATH$joint
-
LAYOUT$points
-
LAYOUT$radius
-
LAYOUT$joint
-
SIZE$points
public static final long SIZE$points -
SIZE$radius
public static final long SIZE$radius -
SIZE$joint
public static final long SIZE$joint -
OFFSET$points
public static final long OFFSET$points -
OFFSET$radius
public static final long OFFSET$radius -
OFFSET$joint
public static final long OFFSET$joint
-
-
Constructor Details
-
XrHandCapsuleFB
Creates an instance of aXrHandCapsuleFB
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
points
-
points
-
points
-
pointsAt
-
pointsAt
-
pointsRaw
-
radius
public float radius() -
radius
-
joint
-
joint
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-