Reinstate implementation detail notes plus {@inheritDoc}.
This commit is contained in:
@@ -471,11 +471,8 @@ public class Matrix3 implements IMatrix3, Serializable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inverts this matrix and places the result in the given object. This code is based on the
|
* @{@inheritDoc} This code is based on the examples in the
|
||||||
* examples in the <a href="http://www.j3d.org/matrix_faq/matrfaq_latest.html">Matrix and
|
* <a href="http://www.j3d.org/matrix_faq/matrfaq_latest.html">Matrix and Quaternion FAQ</a>.
|
||||||
* Quaternion FAQ</a>.
|
|
||||||
*
|
|
||||||
* @return a reference to the result matrix, for chaining.
|
|
||||||
*/
|
*/
|
||||||
@Override // from IMatrix3
|
@Override // from IMatrix3
|
||||||
public Matrix3 invert (Matrix3 result) throws SingularMatrixException {
|
public Matrix3 invert (Matrix3 result) throws SingularMatrixException {
|
||||||
@@ -641,6 +638,11 @@ public class Matrix3 implements IMatrix3, Serializable
|
|||||||
return result.set(m00*vx + m10*vy, m01*vx + m11*vy);
|
return result.set(m00*vx + m10*vy, m01*vx + m11*vy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc} This uses the iterative polar decomposition algorithm described by
|
||||||
|
* <a href="http://www.cs.wisc.edu/graphics/Courses/838-s2002/Papers/polar-decomp.pdf">Ken
|
||||||
|
* Shoemake</a>.
|
||||||
|
*/
|
||||||
@Override // from IMatrix3
|
@Override // from IMatrix3
|
||||||
public float extractRotation () {
|
public float extractRotation () {
|
||||||
// start with the contents of the upper 2x2 portion of the matrix
|
// start with the contents of the upper 2x2 portion of the matrix
|
||||||
|
|||||||
@@ -705,6 +705,10 @@ public final class Matrix4 implements IMatrix4, Serializable
|
|||||||
return invert(new Matrix4());
|
return invert(new Matrix4());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc} This code is based on the examples in the
|
||||||
|
* <a href="http://www.j3d.org/matrix_faq/matrfaq_latest.html">Matrix and Quaternion FAQ</a>.
|
||||||
|
*/
|
||||||
@Override // from IMatrix4
|
@Override // from IMatrix4
|
||||||
public Matrix4 invert (Matrix4 result) throws SingularMatrixException {
|
public Matrix4 invert (Matrix4 result) throws SingularMatrixException {
|
||||||
float m00 = this.m00, m10 = this.m10, m20 = this.m20, m30 = this.m30;
|
float m00 = this.m00, m10 = this.m10, m20 = this.m20, m30 = this.m30;
|
||||||
@@ -917,6 +921,11 @@ public final class Matrix4 implements IMatrix4, Serializable
|
|||||||
return extractRotation(new Quaternion());
|
return extractRotation(new Quaternion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc} This uses the iterative polar decomposition algorithm described by
|
||||||
|
* <a href="http://www.cs.wisc.edu/graphics/Courses/838-s2002/Papers/polar-decomp.pdf">Ken
|
||||||
|
* Shoemake</a>.
|
||||||
|
*/
|
||||||
@Override // from IMatrix4
|
@Override // from IMatrix4
|
||||||
public Quaternion extractRotation (Quaternion result) throws SingularMatrixException {
|
public Quaternion extractRotation (Quaternion result) throws SingularMatrixException {
|
||||||
// start with the contents of the upper 3x3 portion of the matrix
|
// start with the contents of the upper 3x3 portion of the matrix
|
||||||
|
|||||||
Reference in New Issue
Block a user