java.lang.Object
overrungl.joml.Vectorn
Vectorn
relies on preview features of the Java platform:
Vectorn
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 vector-to-native-memory util.
- Since:
- 0.1.0
- Author:
- squid233
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SequenceLayoutPREVIEW
TheVector2d
layout.static final SequenceLayoutPREVIEW
TheVector2f
layout.static final SequenceLayoutPREVIEW
TheVector2i
layout.static final SequenceLayoutPREVIEW
TheVector3d
layout.static final SequenceLayoutPREVIEW
TheVector3f
layout.static final SequenceLayoutPREVIEW
TheVector3i
layout.static final SequenceLayoutPREVIEW
TheVector4d
layout.static final SequenceLayoutPREVIEW
TheVector4f
layout.static final SequenceLayoutPREVIEW
TheVector4i
layout. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector2dc vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector2fc vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector2ic vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector3dc vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector3fc vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector3ic vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector4dc vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector4fc vec) Allocates the vector.static MemorySegmentPREVIEW
allocate
(SegmentAllocatorPREVIEW allocator, org.joml.Vector4ic vec) Allocates the vector.static MemorySegmentPREVIEW
malloc
(org.joml.Vector2dc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector2fc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector2ic vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector3dc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector3fc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector3ic vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector4dc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector4fc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(org.joml.Vector4ic vec) Allocates the vector by C memory function.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector2dc vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector2fc vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector2ic vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector3dc vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector3fc vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector3ic vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector4dc vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector4fc vec) Allocates the vector on stack.static MemorySegmentPREVIEW
malloc
(MemoryStackPREVIEW stack, org.joml.Vector4ic vec) Allocates the vector on stack.static MemorySegmentPREVIEW
put
(org.joml.Vector2dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector2dc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector2fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector2fc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector2ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector2ic vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector3dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector3dc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector3fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector3fc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector3ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector3ic vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector4dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector4dc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector4fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector4fc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEW
put
(org.joml.Vector4ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEW
put
(org.joml.Vector4ic vec, MemorySegmentPREVIEW dest) Puts the vector.
-
Field Details
-
VEC2I
TheVector2i
layout. -
VEC2F
TheVector2f
layout. -
VEC2D
TheVector2d
layout. -
VEC3I
TheVector3i
layout. -
VEC3F
TheVector3f
layout. -
VEC3D
TheVector3d
layout. -
VEC4I
TheVector4i
layout. -
VEC4F
TheVector4f
layout. -
VEC4D
TheVector4d
layout.
-
-
Method Details
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector2ic vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector2fc vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector2dc vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector3ic vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector3fc vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector3dc vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector4ic vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector4fc vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
allocate
public static MemorySegmentPREVIEW allocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector4dc vec) Allocates the vector.- Parameters:
allocator
- the segment allocator.vec
- the vector.- Returns:
- the segment.
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector by C memory function.- Parameters:
vec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
malloc
Allocates the vector on stack.- Parameters:
stack
- the memory stackvec
- the vector- Returns:
- the memory address
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector2ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector2fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector2dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector3ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector3fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector3dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector4ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector4fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
public static MemorySegmentPREVIEW put(org.joml.Vector4dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.- Parameters:
vec
- the vectoroffset
- the offsetdest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
put
Puts the vector.- Parameters:
vec
- the vectordest
- the destination- Returns:
- the destination
-
Vectorn
when preview features are enabled.