LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: Jegorex on September 12, 2012, 00:57:59

Title: [FIXED] dest is not used in Matrix3f.negate(Matrix3f dest)
Post by: Jegorex on September 12, 2012, 00:57:59
This is the negate method at the moment:
/**
* 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
public Matrix3f negate(Matrix3f dest) {
return negate(this, dest);
}


Matrix2f and Matrix4f have the same problem.
Title: Re: [BUG] dest is not used in Matrix3f.negate(Matrix3f dest)
Post by: kappa on September 12, 2012, 11:33:44
thx for finding and reporting, fixed in SVN.
Title: Re: [FIXED] dest is not used in Matrix3f.negate(Matrix3f dest)
Post by: Jegorex on September 12, 2012, 11:43:42
Thank you for the quick response and fix :)