Implement Matrix3x3::Row
Some checks failed
Build Docs With Doxygen / Explore-Gitea-Actions (push) Failing after 1m11s
Some checks failed
Build Docs With Doxygen / Explore-Gitea-Actions (push) Failing after 1m11s
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user