java.lang.Object
com.github.stephengold.joltjni.ScaleHelpers

public final class ScaleHelpers extends Object
Utilities to test a scaling vector for various properties. (native namespace: ScaleHelpers)
  • Field Details

    • cMinScale

      public static final float cMinScale
      The smalled valid scale factor.
      See Also:
    • cScaleToleranceSq

      public static final float cScaleToleranceSq
      The tolerance used when comparing components of a scale vector.
      See Also:
  • Method Details

    • isInsideOut

      public static boolean isInsideOut(Vec3Arg scale)
      Test whether the specified scale turns 3-D objects inside-out.
      Parameters:
      scale - the scale vector to test (not null, unaffected)
      Returns:
      true if it turns objects inside-out, otherwise false
    • isNotScaled

      public static boolean isNotScaled(Vec3Arg scale)
      Test whether the specified scale is identity.
      Parameters:
      scale - the scale vector to test (not null, unaffected)
      Returns:
      true if identity, otherwise false