public final class PolarDecomposition
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
decomp_affine(Mat4x4 M,
Transform dst)
Decompose 4x4 affine matrix A as TFRUK(U transpose), where t contains the
translation components, q contains the rotation R, u contains U, k contains
scale factors, and f contains the sign of the determinant.
|
protected static float |
polar_decomp(Mat4x4 M,
Mat4x4 Q,
Mat4x4 S)
Polar Decomposition of 3x3 matrix in 4x4, M = QS.
|
protected static Quat |
snuggle(Quat q_,
Vec3 k,
Quat dst)
Given a unit quaternion, q, and a scale vector, k, find a unit quaternion, p,
which permutes the axes and turns freely in the plane of duplicate scale
factors, such that q p has the largest possible w component, i.e. the
smallest possible angle.
|
protected static void |
spect_decomp(Vec3 dst,
Mat4x4 S,
Mat4x4 U)
Compute the spectral decomposition of symmetric positive semi-definite S.
|
public static void decomp_affine(Mat4x4 M, Transform dst)
protected static Quat snuggle(Quat q_, Vec3 k, Quat dst)
protected static void spect_decomp(Vec3 dst, Mat4x4 S, Mat4x4 U)
protected static float polar_decomp(Mat4x4 M, Mat4x4 Q, Mat4x4 S)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com