Package com.raylib.jextract
Class Ray
java.lang.Object
com.raylib.jextract.Ray
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static MemorySegment
direction
(MemorySegment struct) Getter for field:Vector3 direction
static void
direction
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 direction
static final GroupLayout
Layout for field:Vector3 direction
static final long
Offset for field:Vector3 direction
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
position
(MemorySegment struct) Getter for field:Vector3 position
static void
position
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 position
static final GroupLayout
Layout for field:Vector3 position
static final long
Offset for field:Vector3 position
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static long
sizeof()
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 ofarrayParam
which 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 sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-