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:
parent
c58a34ee2e
commit
b59d60c4ba
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue