Fix Matrix*f.negate(Matrix*f dest) methods in Matrix2f, Matrix3f and Matrix4f classes. Thx to Jegorex for finding, reporting and providing fix on forum.

This commit is contained in:
kappa1 2012-09-12 11:29:40 +00:00
parent c58a34ee2e
commit b59d60c4ba
3 changed files with 3 additions and 3 deletions

View File

@ -333,7 +333,7 @@ public class Matrix2f extends Matrix implements Serializable {
* @return the negated matrix
*/
public Matrix2f negate(Matrix2f dest) {
return negate(this, this);
return negate(this, dest);
}
/**

View File

@ -431,7 +431,7 @@ public class Matrix3f extends Matrix implements Serializable {
* @return the negated matrix
*/
public Matrix3f negate(Matrix3f dest) {
return negate(this, this);
return negate(this, dest);
}
/**

View File

@ -814,7 +814,7 @@ public class Matrix4f extends Matrix implements Serializable {
* @return the negated matrix
*/
public Matrix4f negate(Matrix4f dest) {
return negate(this, this);
return negate(this, dest);
}
/**