Class Quantizer

java.lang.Object
com.gaia3d.converter.jgltf.Quantization

public class Quantizer extends Object
  • Constructor Details

    • Quantizer

      public Quantizer()
  • Method Details

    • computeQuantizationMatrix

      public static org.joml.Matrix4d computeQuantizationMatrix(float[] values)
    • computeQuantizationMatrix

      public static org.joml.Matrix4d computeQuantizationMatrix(org.joml.Matrix4d originalMatrix, float[] values)
    • paddedLength

      public static int paddedLength(int length)
    • convertSignedShortFromUnsignedShort

      public static short convertSignedShortFromUnsignedShort(int value)
    • quantizeUnsignedShorts

      public static short[] quantizeUnsignedShorts(float[] values, org.joml.Matrix4d originalMatrix, org.joml.Matrix4d quantizationMatrix)