Package org.joml
Class Options
java.lang.Object
org.joml.Options
Utility class for reading system properties.
- Author:
- Kai Burjack
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
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 final boolean
Whether fast approximations of some java.lang.Math operations should be used.static final boolean
Whether to force the use of sun.misc.Unsafe when copying memory with MemUtil.static final boolean
Whether not to use sun.misc.Unsafe when copying memory with MemUtil.static final NumberFormat
TheNumberFormat
used to format all numbers throughout all JOML classes.static final int
Determines the number of decimal digits produced in the formatted numbers.static final boolean
WhenFASTMATH
istrue
, whether to use a lookup table for sin/cos.static final int
WhenSIN_LOOKUP
istrue
, this determines the table size.static final boolean
Whether to try using java.lang.Math.fma() in most matrix/vector/quaternion operations if it is available.static final boolean
Whether to use aNumberFormat
producing scientific notation output when formatting matrix, vector and quaternion components to strings. -
Method Summary
-
Field Details
-
DEBUG
public static final boolean DEBUGWhether 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_UNSAFEWhether not to use sun.misc.Unsafe when copying memory with MemUtil. -
FORCE_UNSAFE
public static final boolean FORCE_UNSAFEWhether to force the use of sun.misc.Unsafe when copying memory with MemUtil. -
FASTMATH
public static final boolean FASTMATHWhether fast approximations of some java.lang.Math operations should be used. -
SIN_LOOKUP
public static final boolean SIN_LOOKUPWhenFASTMATH
istrue
, whether to use a lookup table for sin/cos. -
SIN_LOOKUP_BITS
public static final int SIN_LOOKUP_BITSWhenSIN_LOOKUP
istrue
, this determines the table size. -
useNumberFormat
public static final boolean useNumberFormatWhether 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_FMAWhether 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 numberFormatDecimalsDetermines the number of decimal digits produced in the formatted numbers. -
NUMBER_FORMAT
TheNumberFormat
used to format all numbers throughout all JOML classes.
-