It compiles
This commit is contained in:
parent
7c06bc2122
commit
56c0f92ba4
@ -36,6 +36,10 @@ Quaternion LinearAlgebra::Matrix1::ToQuaternion() {
|
||||
return Quaternion(this->data[0], this->data[1], this->data[2], this->data[3]);
|
||||
}
|
||||
|
||||
Matrix1 Matrix1::Slice(int start, int stop) {
|
||||
return Matrix1();
|
||||
}
|
||||
|
||||
// Matrix1
|
||||
#pragma endregion
|
||||
|
||||
@ -289,7 +293,8 @@ Matrix2 Matrix2::Inverse() {
|
||||
Matrix2 augmentedMatrix(n, 2 * n);
|
||||
for (int i = 0; i < n; i++) {
|
||||
for (int j = 0; j < n; j++) {
|
||||
augmentedMatrix.data[i * this->nCols + j] = this->data[i, j];
|
||||
augmentedMatrix.data[i * this->nCols + j] =
|
||||
this->data[i * this->nCols + j];
|
||||
augmentedMatrix.data[i * this->nCols + (j + n)] =
|
||||
(i == j) ? 1 : 0; // identity matrix;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user