Class MatrixUtil
java.lang.Object
org.cube.converter.util.math.matrix.MatrixUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.joml.QuaternionfapplyJacobiIterations(org.joml.Matrix3f AtA, int numJacobiIterations) static TransformationfromMatrix(org.joml.Matrix4f matrix) static booleanisIdentity(org.joml.Matrix4f matrix) static booleanisOrthonormal(org.joml.Matrix4f matrix) static booleanisTranslation(org.joml.Matrix4f matrix) static org.joml.Matrix4fscale(org.joml.Matrix4f matrix, float scalar) static Triple<org.joml.Quaternionf,org.joml.Vector3f, org.joml.Quaternionf> svdDecompose(org.joml.Matrix3f A) static TransformationtoTransform(List<Pair<Position3V, Position3V>> rotations, Cube cube)
-
Method Details
-
toTransform
-
fromMatrix
-
scale
public static org.joml.Matrix4f scale(org.joml.Matrix4f matrix, float scalar) -
applyJacobiIterations
public static org.joml.Quaternionf applyJacobiIterations(org.joml.Matrix3f AtA, int numJacobiIterations) -
svdDecompose
public static Triple<org.joml.Quaternionf,org.joml.Vector3f, svdDecomposeorg.joml.Quaternionf> (org.joml.Matrix3f A) -
isIdentity
public static boolean isIdentity(org.joml.Matrix4f matrix) -
isTranslation
public static boolean isTranslation(org.joml.Matrix4f matrix) -
isOrthonormal
public static boolean isOrthonormal(org.joml.Matrix4f matrix)
-