Package org.joml
Class Options
- java.lang.Object
-
- org.joml.Options
-
public final class Options extends java.lang.ObjectUtility class for reading system properties.- Author:
- Kai Burjack
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUGWhether certain debugging checks should be made, such as that only direct NIO Buffers are used when Unsafe is active, and a proxy should be created on calls to readOnlyView().static booleanFASTMATHWhether fast approximations of some java.lang.Math operations should be used.static booleanFORCE_UNSAFEWhether to force the use of sun.misc.Unsafe when copying memory with MemUtil.static booleanNO_UNSAFEWhether not to use sun.misc.Unsafe when copying memory with MemUtil.static java.text.NumberFormatNUMBER_FORMATTheNumberFormatused to format all numbers throughout all JOML classes.static intnumberFormatDecimalsWhenuseNumberFormatistruethen this determines the number of decimal digits produced in the formatted numbers.static booleanSIN_LOOKUPWhenFASTMATHistrue, whether to use a lookup table for sin/cos.static intSIN_LOOKUP_BITSWhenSIN_LOOKUPistrue, this determines the table size.static booleanUSE_MATH_FMAWhether to try using java.lang.Math.fma() in most matrix/vector/quaternion operations if it is available.static booleanuseNumberFormatWhether to use aNumberFormatproducing scientific notation output when formatting matrix, vector and quaternion components to strings.
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
Whether certain debugging checks should be made, such as that only direct NIO Buffers are used when Unsafe is active, and a proxy should be created on calls to readOnlyView().
-
NO_UNSAFE
public static final boolean NO_UNSAFE
Whether not to use sun.misc.Unsafe when copying memory with MemUtil.
-
FORCE_UNSAFE
public static final boolean FORCE_UNSAFE
Whether to force the use of sun.misc.Unsafe when copying memory with MemUtil.
-
FASTMATH
public static final boolean FASTMATH
Whether fast approximations of some java.lang.Math operations should be used.
-
SIN_LOOKUP
public static final boolean SIN_LOOKUP
WhenFASTMATHistrue, whether to use a lookup table for sin/cos.
-
SIN_LOOKUP_BITS
public static final int SIN_LOOKUP_BITS
WhenSIN_LOOKUPistrue, this determines the table size.
-
useNumberFormat
public static final boolean useNumberFormat
Whether to use aNumberFormatproducing scientific notation output when formatting matrix, vector and quaternion components to strings.
-
USE_MATH_FMA
public static final boolean USE_MATH_FMA
Whether to try using java.lang.Math.fma() in most matrix/vector/quaternion operations if it is available. If the CPU does not support it, it will be a lot slower than `a*b+c` and potentially generate a lot of memory allocations for the emulation with `java.util.BigDecimal`, though.
-
numberFormatDecimals
public static final int numberFormatDecimals
WhenuseNumberFormatistruethen this determines the number of decimal digits produced in the formatted numbers.
-
NUMBER_FORMAT
public static final java.text.NumberFormat NUMBER_FORMAT
TheNumberFormatused to format all numbers throughout all JOML classes.
-
-