java.lang.Object
overrungl.joml.Matrixn
Matrixn
relies on preview features of the Java platform:
Matrixn
refers 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
Modifier and TypeFieldDescriptionstatic final SequenceLayoutPREVIEW
TheMatrix2d
layout.static final SequenceLayoutPREVIEW
TheMatrix2f
layout.static final SequenceLayoutPREVIEW
TheMatrix3d
layout.static final SequenceLayoutPREVIEW
TheMatrix3f
layout.static final SequenceLayoutPREVIEW
TheMatrix3x2d
layout.static final SequenceLayoutPREVIEW
TheMatrix3x2f
layout.static final SequenceLayoutPREVIEW
TheMatrix4d
layout.static final SequenceLayoutPREVIEW
TheMatrix4f
layout.static final SequenceLayoutPREVIEW
TheMatrix4x3d
layout.static final SequenceLayoutPREVIEW
TheMatrix4x3f
layout. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix2dc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix2fc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3dc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3fc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3x2dc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix3x2fc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4dc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4fc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4x3dc mat) Allocates the matrix.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Matrix4x3fc mat) Allocates the matrix.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix2dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix2fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix3dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix3fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix3x2dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix3x2fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix4dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix4fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix4x3dc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Matrix4x3fc mat) Allocates the matrix by C memory function.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix2dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix2fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix3dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix3fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix3x2dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix3x2fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix4dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix4fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix4x3dc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Matrix4x3fc mat) Allocates the matrix on stack.static MemorySegmentPREVIEW
put
(org.joml.Matrix2dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix2dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix2fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix2fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix3dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix3dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix3fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix3fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix3x2dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix3x2dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix3x2fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix3x2fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix4dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix4dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix4fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix4fc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix4x3dc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix4x3dc mat, MemorySegmentPREVIEW dest) Puts the matrix.static MemorySegmentPREVIEW
put
(org.joml.Matrix4x3fc mat, long offset, MemorySegmentPREVIEW dest) Puts the matrix at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Matrix4x3fc mat, MemorySegmentPREVIEW dest) Puts the matrix.
-
Field Details
-
MAT2F
TheMatrix2f
layout. -
MAT2D
TheMatrix2d
layout. -
MAT3X2F
TheMatrix3x2f
layout. -
MAT3X2D
TheMatrix3x2d
layout. -
MAT3F
TheMatrix3f
layout. -
MAT3D
TheMatrix3d
layout. -
MAT4X3F
TheMatrix4x3f
layout. -
MAT4X3D
TheMatrix4x3d
layout. -
MAT4F
TheMatrix4f
layout. -
MAT4D
TheMatrix4d
layout.
-
-
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
-
Matrixn
when preview features are enabled.