Hello Guest

[FIXED] dest is not used in Matrix3f.negate(Matrix3f dest)

  • 2 Replies
  • 2780 Views
[FIXED] dest is not used in Matrix3f.negate(Matrix3f dest)
« on: September 12, 2012, 00:57:59 »
This is the negate method at the moment:
Code: [Select]
/**
* Negate this matrix and place the result in a destination matrix.
* @param dest The destination matrix, or null if a new matrix is to be created
* @return the negated matrix
*/
public Matrix3f negate(Matrix3f dest) {
return negate(this, this);
}

It should be
Code: [Select]
public Matrix3f negate(Matrix3f dest) {
return negate(this, dest);
}

Matrix2f and Matrix4f have the same problem.

*

Offline kappa

  • *****
  • 1313
Re: [BUG] dest is not used in Matrix3f.negate(Matrix3f dest)
« Reply #1 on: September 12, 2012, 11:33:44 »
thx for finding and reporting, fixed in SVN.

Re: [FIXED] dest is not used in Matrix3f.negate(Matrix3f dest)
« Reply #2 on: September 12, 2012, 11:43:42 »
Thank you for the quick response and fix :)