java.lang.Object
overrungl.joml.Vectorn
Vectorn relies on preview features of the Java platform:
Vectornrefers 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
FieldsModifier and TypeFieldDescriptionstatic final SequenceLayoutPREVIEWTheVector2dlayout.static final SequenceLayoutPREVIEWTheVector2flayout.static final SequenceLayoutPREVIEWTheVector2ilayout.static final SequenceLayoutPREVIEWTheVector3dlayout.static final SequenceLayoutPREVIEWTheVector3flayout.static final SequenceLayoutPREVIEWTheVector3ilayout.static final SequenceLayoutPREVIEWTheVector4dlayout.static final SequenceLayoutPREVIEWTheVector4flayout.static final SequenceLayoutPREVIEWTheVector4ilayout. - 
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector2dc vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector2fc vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector2ic vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector3dc vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector3fc vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector3ic vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector4dc vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector4fc vec) Allocates the vector.static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator, org.joml.Vector4ic vec) Allocates the vector.static MemorySegmentPREVIEWmalloc(org.joml.Vector2dc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector2fc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector2ic vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector3dc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector3fc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector3ic vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector4dc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector4fc vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(org.joml.Vector4ic vec) Allocates the vector by C memory function.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector2dc vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector2fc vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector2ic vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector3dc vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector3fc vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector3ic vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector4dc vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector4fc vec) Allocates the vector on stack.static MemorySegmentPREVIEWmalloc(MemoryStackPREVIEW stack, org.joml.Vector4ic vec) Allocates the vector on stack.static MemorySegmentPREVIEWput(org.joml.Vector2dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector2dc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector2fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector2fc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector2ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector2ic vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector3dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector3dc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector3fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector3fc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector3ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector3ic vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector4dc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector4dc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector4fc vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector4fc vec, MemorySegmentPREVIEW dest) Puts the vector.static MemorySegmentPREVIEWput(org.joml.Vector4ic vec, long offset, MemorySegmentPREVIEW dest) Puts the vector at the given offset.static MemorySegmentPREVIEWput(org.joml.Vector4ic vec, MemorySegmentPREVIEW dest) Puts the vector. 
- 
Field Details
- 
VEC2I
TheVector2ilayout. - 
VEC2F
TheVector2flayout. - 
VEC2D
TheVector2dlayout. - 
VEC3I
TheVector3ilayout. - 
VEC3F
TheVector3flayout. - 
VEC3D
TheVector3dlayout. - 
VEC4I
TheVector4ilayout. - 
VEC4F
TheVector4flayout. - 
VEC4D
TheVector4dlayout. 
 - 
 - 
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
 
 
 - 
 
Vectornwhen preview features are enabled.