mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-04 07:49:56 +01:00
Matrix4f.invert() returns null on failure
This commit is contained in:
parent
b7510958c7
commit
c003893fa5
|
|
@ -703,7 +703,7 @@ public class Matrix4f extends Matrix implements Serializable {
|
|||
|
||||
/**
|
||||
* Invert this matrix
|
||||
* @return this
|
||||
* @return this if successful, null otherwise
|
||||
*/
|
||||
public Matrix invert() {
|
||||
|
||||
|
|
@ -757,8 +757,9 @@ public class Matrix4f extends Matrix implements Serializable {
|
|||
m31 = t13*determinant_inv;
|
||||
m32 = t23*determinant_inv;
|
||||
m23 = t32*determinant_inv;
|
||||
}
|
||||
return this;
|
||||
return this;
|
||||
} else
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue