Class Ray
java.lang.Object
com.raylib.jextract.Ray
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentdirection(MemorySegment struct) Getter for field:Vector3 directionstatic voiddirection(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 directionstatic final GroupLayoutLayout for field:Vector3 directionstatic final longOffset for field:Vector3 directionstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentposition(MemorySegment struct) Getter for field:Vector3 positionstatic voidposition(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 positionstatic final GroupLayoutLayout for field:Vector3 positionstatic final longOffset for field:Vector3 positionstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
position$layout
Layout for field:Vector3 position -
position$offset
public static final long position$offset()Offset for field:Vector3 position -
position
Getter for field:Vector3 position -
position
Setter for field:Vector3 position -
direction$layout
Layout for field:Vector3 direction -
direction$offset
public static final long direction$offset()Offset for field:Vector3 direction -
direction
Getter for field:Vector3 direction -
direction
Setter for field:Vector3 direction -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-