Package org.joml

Class Options

java.lang.Object
org.joml.Options

public final class Options extends Object
Utility class for reading system properties.
Author:
Kai Burjack
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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
    The NumberFormat 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
    When FASTMATH is true, whether to use a lookup table for sin/cos.
    static final int
    When SIN_LOOKUP is true, 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 a NumberFormat producing scientific notation output when formatting matrix, vector and quaternion components to strings.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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
      When FASTMATH is true, whether to use a lookup table for sin/cos.
    • SIN_LOOKUP_BITS

      public static final int SIN_LOOKUP_BITS
      When SIN_LOOKUP is true, this determines the table size.
    • useNumberFormat

      public static final boolean useNumberFormat
      Whether to use a NumberFormat 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
      Determines the number of decimal digits produced in the formatted numbers.
    • NUMBER_FORMAT

      public static final NumberFormat NUMBER_FORMAT
      The NumberFormat used to format all numbers throughout all JOML classes.