Package org.joml
Class Options
java.lang.Object
org.joml.Options
Utility class for reading system properties.
- Author:
- Kai Burjack
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanWhether 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 booleanWhether fast approximations of some java.lang.Math operations should be used.static final booleanWhether to force the use of sun.misc.Unsafe when copying memory with MemUtil.static final booleanWhether not to use sun.misc.Unsafe when copying memory with MemUtil.static final NumberFormatTheNumberFormatused to format all numbers throughout all JOML classes.static final intDetermines the number of decimal digits produced in the formatted numbers.static final booleanWhenFASTMATHistrue, whether to use a lookup table for sin/cos.static final intWhenSIN_LOOKUPistrue, this determines the table size.static final booleanWhether to try using java.lang.Math.fma() in most matrix/vector/quaternion operations if it is available.static final booleanWhether to use aNumberFormatproducing 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_LOOKUPWhenFASTMATHistrue, whether to use a lookup table for sin/cos. -
SIN_LOOKUP_BITS
public static final int SIN_LOOKUP_BITSWhenSIN_LOOKUPistrue, this determines the table size. -
useNumberFormat
public static final boolean useNumberFormatWhether to use aNumberFormatproducing 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
TheNumberFormatused to format all numbers throughout all JOML classes.
-