Package com.gaia3d.converter.jgltf
Class Quantizer
java.lang.Object
com.gaia3d.converter.jgltf.Quantization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.joml.Matrix4d
computeQuantizationMatrix
(float[] values) static org.joml.Matrix4d
computeQuantizationMatrix
(org.joml.Matrix4d originalMatrix, float[] values) static short
convertSignedShortFromUnsignedShort
(int value) static int
paddedLength
(int length) static short[]
quantizeUnsignedShorts
(float[] values, org.joml.Matrix4d originalMatrix, org.joml.Matrix4d quantizationMatrix)
-
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)
-