Package jolt.math
Class DVec3
java.lang.Object
jolt.BaseJoltNative
jolt.SegmentedJoltNative
jolt.math.DVec3
- All Implemented Interfaces:
JoltNative
DVec3 relies on preview features of the Java platform:
DVec3refers to one or more preview APIs:MemoryAddress,MemorySegment,MemorySession,SegmentAllocator.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Field Summary
Fields inherited from class jolt.SegmentedJoltNative
handle -
Method Summary
Modifier and TypeMethodDescriptionstatic DVec3at(MemorySegmentPREVIEW segment) static DVec3at(MemorySessionPREVIEW arena, MemoryAddressPREVIEW addr) double[]booleanequalValue(DVec3 v) doubleget(int index) doublegetX()doublegetY()doublegetZ()static DVec3of(SegmentAllocatorPREVIEW alloc) static DVec3of(SegmentAllocatorPREVIEW alloc, double s) static DVec3of(SegmentAllocatorPREVIEW alloc, double x, double y, double z) static MemorySegmentPREVIEWofArray(SegmentAllocatorPREVIEW alloc, DVec3... values) voidread(MemoryAddressPREVIEW address) voidvoidset(int index, double value) voidsetX(double x) voidsetY(double y) voidsetZ(double z) toString()voidwrite(MemorySegmentPREVIEW segment) Methods inherited from class jolt.SegmentedJoltNative
addressMethods inherited from class jolt.BaseJoltNative
equals, hashCode
-
Method Details
-
at
-
at
-
of
-
of
-
of
-
ofArray
-
components
public double[] components() -
get
public double get(int index) -
set
public void set(int index, double value) -
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getZ
public double getZ() -
setZ
public void setZ(double z) -
read
-
read
-
write
-
equalValue
-
toString
-
DVec3when preview features are enabled.