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 recordRepresents a pointer to / an array ofXrHandCapsuleFBstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final SequenceLayoutstatic final ValueLayout.OfFloatstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrHandCapsuleFB(@NotNull MemorySegment segment) Creates an instance of aXrHandCapsuleFBrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHandCapsuleFBstatic XrHandCapsuleFB.Ptrstatic XrHandCapsuleFBclone(Arena arena, XrHandCapsuleFB src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intjoint()joint(int value) points()points(XrVector3f.Ptr value) points(@NotNull Consumer<XrVector3f.Ptr> consumer) pointsAt(int index) voidpointsAt(int index, XrVector3f value) @NotNull MemorySegmentfloatradius()radius(float value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()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 aXrHandCapsuleFBrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-