Implement Matrix3x3::Row
Some checks failed
Build Docs With Doxygen / Explore-Gitea-Actions (push) Failing after 1m11s

This commit is contained in:
2024-05-22 12:31:13 -04:00
parent bc1ee4e14f
commit 4b0b05603e
2 changed files with 4 additions and 2 deletions

View File

@@ -212,7 +212,7 @@ namespace J3ML::LinearAlgebra {
/// Returns the given row.
/** @param row The zero-based index [0, 2] of the row to get. */
Vector3 GetRow(int index) const;
Vector3 Row(int index) const { return GetRow(index);}
Vector3 Row(int index) const;
/// This method also allows assignment to the retrieved row.
Vector3& Row(int row);
@@ -246,7 +246,7 @@ namespace J3ML::LinearAlgebra {
/// Sets the value of a given column.
/** @param column The index of the column to set, in the range [0-2]
@param data A pointer ot an array of 3 floats that contain the new x, y, and z values for the column.*/
@param data A pointer to an array of 3 floats that contain the new x, y, and z values for the column.*/
void SetColumn(int column, const float* data);
void SetColumn(int column, const Vector3 & data);
void SetColumn(int column, float x, float y, float z);

View File

@@ -613,6 +613,8 @@ namespace J3ML::LinearAlgebra {
return IsColOrthogonal(epsilon) && Row(0).IsNormalized(epsilon) && Row(1).IsNormalized(epsilon) && Row(2).IsNormalized(epsilon);
}
Vector3 Matrix3x3::Row(int index) const { return GetRow(index);}
}