Package org.joml
Class Options
- java.lang.Object
-
- org.joml.Options
-
public final class Options extends java.lang.Object
Utility class for reading system properties.- Author:
- Kai Burjack
-
-
Field Summary
Fields Modifier and Type Field Description static 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().static boolean
FASTMATH
Whether fast approximations of some java.lang.Math operations should be used.static boolean
FORCE_UNSAFE
Whether to force the use of sun.misc.Unsafe when copying memory with MemUtil.static boolean
NO_UNSAFE
Whether not to use sun.misc.Unsafe when copying memory with MemUtil.static java.text.NumberFormat
NUMBER_FORMAT
TheNumberFormat
used to format all numbers throughout all JOML classes.static int
numberFormatDecimals
WhenuseNumberFormat
istrue
then this determines the number of decimal digits produced in the formatted numbers.static boolean
SIN_LOOKUP
WhenFASTMATH
istrue
, whether to use a lookup table for sin/cos.static int
SIN_LOOKUP_BITS
WhenSIN_LOOKUP
istrue
, this determines the table size.static boolean
USE_MATH_FMA
Whether to try using java.lang.Math.fma() in most matrix/vector/quaternion operations if it is available.static boolean
useNumberFormat
Whether to use aNumberFormat
producing 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
WhenFASTMATH
istrue
, whether to use a lookup table for sin/cos.
-
SIN_LOOKUP_BITS
public static final int SIN_LOOKUP_BITS
WhenSIN_LOOKUP
istrue
, this determines the table size.
-
useNumberFormat
public static final boolean useNumberFormat
Whether to use aNumberFormat
producing 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
WhenuseNumberFormat
istrue
then this determines the number of decimal digits produced in the formatted numbers.
-
NUMBER_FORMAT
public static final java.text.NumberFormat NUMBER_FORMAT
TheNumberFormat
used to format all numbers throughout all JOML classes.
-
-