Reinstate implementation detail notes plus {@inheritDoc}.

This commit is contained in:
Michael Bayne
2012-05-11 08:40:30 -07:00
parent c99825d35f
commit 993b37ed19
2 changed files with 16 additions and 5 deletions
+7 -5
View File
@@ -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
* examples in the <a href="http://www.j3d.org/matrix_faq/matrfaq_latest.html">Matrix and
* Quaternion FAQ</a>.
*
* @return a reference to the result matrix, for chaining.
* @{@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 IMatrix3
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);
}
/**
* {@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
public float extractRotation () {
// start with the contents of the upper 2x2 portion of the matrix
+9
View File
@@ -705,6 +705,10 @@ public final class Matrix4 implements IMatrix4, Serializable
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
public Matrix4 invert (Matrix4 result) throws SingularMatrixException {
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());
}
/**
* {@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
public Quaternion extractRotation (Quaternion result) throws SingularMatrixException {
// start with the contents of the upper 3x3 portion of the matrix