Class Vector3
java.lang.Object
com.raylib.jextract.Vector3
-
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 final GroupLayout
layout()
The layout of this structstatic MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
The size (in bytes) of this structstatic float
x
(MemorySegment struct) Getter for field:float x
static void
x
(MemorySegment struct, float fieldValue) Setter for field:float x
static final ValueLayout.OfFloat
x$layout()
Layout for field:float x
static final long
x$offset()
Offset for field:float x
static float
y
(MemorySegment struct) Getter for field:float y
static void
y
(MemorySegment struct, float fieldValue) Setter for field:float y
static final ValueLayout.OfFloat
y$layout()
Layout for field:float y
static final long
y$offset()
Offset for field:float y
static float
z
(MemorySegment struct) Getter for field:float z
static void
z
(MemorySegment struct, float fieldValue) Setter for field:float z
static final ValueLayout.OfFloat
z$layout()
Layout for field:float z
static final long
z$offset()
Offset for field:float z
-
Method Details
-
layout
The layout of this struct -
x$layout
Layout for field:float x
-
x$offset
public static final long x$offset()Offset for field:float x
-
x
Getter for field:float x
-
x
Setter for field:float x
-
y$layout
Layout for field:float y
-
y$offset
public static final long y$offset()Offset for field:float y
-
y
Getter for field:float y
-
y
Setter for field:float y
-
z$layout
Layout for field:float z
-
z$offset
public static final long z$offset()Offset for field:float z
-
z
Getter for field:float z
-
z
Setter for field:float z
-
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
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-