java.lang.Object
overrungl.joml.Matrixn
Matrixn relies on preview features of the Java platform:
Matrixnrefers to one or more preview APIs:MemorySegment,SegmentAllocator,SequenceLayout.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The matrix-to-native-memory util.
- Since:
- 0.1.0
- Author:
- squid233
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SequenceLayoutPREVIEWTheMatrix2dlayout.static final SequenceLayoutPREVIEWTheMatrix2flayout.static final SequenceLayoutPREVIEWTheMatrix3dlayout.static final SequenceLayoutPREVIEWTheMatrix3flayout.static final SequenceLayoutPREVIEWTheMatrix3x2dlayout.static final SequenceLayoutPREVIEWTheMatrix3x2flayout.static final SequenceLayoutPREVIEWTheMatrix4dlayout.static final SequenceLayoutPREVIEWTheMatrix4flayout.static final SequenceLayoutPREVIEWTheMatrix4x3dlayout.static final SequenceLayoutPREVIEWTheMatrix4x3flayout. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix2dc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix2fc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3dc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3fc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3x2dc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3x2fc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4dc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4fc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4x3dc mat) Allocates the matrix.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4x3fc mat) Allocates the matrix.static MemorySegmentPREVIEWmalloc(org.joml.Matrix2dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix2fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix3dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix3fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix3x2dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix3x2fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix4dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix4fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix4x3dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Matrix4x3fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix2dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix2fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix3dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix3fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix3x2dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix3x2fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix4dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix4fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix4x3dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Matrix4x3fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEWput(org.joml.Matrix2dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix2dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix2fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix2fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix3dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix3dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix3fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix3fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix3x2dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix3x2dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix3x2fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix3x2fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix4dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix4dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix4fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix4fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix4x3dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix4x3dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEWput(org.joml.Matrix4x3fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEWput(org.joml.Matrix4x3fc mat, MemorySegmentPREVIEW dest) Puts the matrix.
-
Field Details
-
MAT2F
TheMatrix2flayout. -
MAT2D
TheMatrix2dlayout. -
MAT3X2F
TheMatrix3x2flayout. -
MAT3X2D
TheMatrix3x2dlayout. -
MAT3F
TheMatrix3flayout. -
MAT3D
TheMatrix3dlayout. -
MAT4X3F
TheMatrix4x3flayout. -
MAT4X3D
TheMatrix4x3dlayout. -
MAT4F
TheMatrix4flayout. -
MAT4D
TheMatrix4dlayout.
-
-
Method Details
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix2fc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix2dc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3x2fc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3x2dc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3fc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3dc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4x3fc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4x3dc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4fc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4dc mat) Allocates the matrix.- Parameters:
allocator- the segment allocator.mat- the matrix.- Returns:
- the segment.
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix by C memory function.- Parameters:
mat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
malloc
Allocates the matrix on stack.- Parameters:
stack- the memory stackmat- the matrix- Returns:
- the memory address
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix2fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix2dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix3x2fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix3x2dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix3fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix3dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix4x3fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix4x3dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix4fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Matrix4dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.- Parameters:
mat- the matrixoffset- the offsetdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
put
Puts the matrix.- Parameters:
mat- the matrixdest- the destination- Returns:
- the destination
-
Matrixnwhen preview features are enabled.