mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 09:29:38 +01:00
Added set_column to Basis.
This commit is contained in:
parent
341b1a105f
commit
ae7d514cf3
@ -201,6 +201,13 @@ public:
|
|||||||
return Vector3(elements[0][i], elements[1][i], elements[2][i]);
|
return Vector3(elements[0][i], elements[1][i], elements[2][i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_FORCE_INLINE_ void set_column(int p_index, const Vector3 &p_value) {
|
||||||
|
// Set actual basis axis column (we store transposed as rows for performance).
|
||||||
|
elements[0][p_index] = p_value.x;
|
||||||
|
elements[1][p_index] = p_value.y;
|
||||||
|
elements[2][p_index] = p_value.z;
|
||||||
|
}
|
||||||
|
|
||||||
_FORCE_INLINE_ Vector3 get_row(int i) const {
|
_FORCE_INLINE_ Vector3 get_row(int i) const {
|
||||||
return Vector3(elements[i][0], elements[i][1], elements[i][2]);
|
return Vector3(elements[i][0], elements[i][1], elements[i][2]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user