Basis constructor: row vectors -> column vectors

https://github.com/godotengine/godot-proposals/issues/5295
pull/822/head
Zhehang Ding 2022-08-31 19:05:58 -07:00
parent 1863bd88ad
commit 6d1073d867
1 changed files with 4 additions and 4 deletions

View File

@ -258,10 +258,10 @@ public:
Basis(const Vector3 &p_axis, real_t p_phi) { set_axis_angle(p_axis, p_phi); } Basis(const Vector3 &p_axis, real_t p_phi) { set_axis_angle(p_axis, p_phi); }
Basis(const Vector3 &p_axis, real_t p_phi, const Vector3 &p_scale) { set_axis_angle_scale(p_axis, p_phi, p_scale); } Basis(const Vector3 &p_axis, real_t p_phi, const Vector3 &p_scale) { set_axis_angle_scale(p_axis, p_phi, p_scale); }
inline Basis(const Vector3 &row0, const Vector3 &row1, const Vector3 &row2) { inline Basis(const Vector3 &p_x, const Vector3 &p_y, const Vector3 &p_z) {
elements[0] = row0; set_axis(0, p_x);
elements[1] = row1; set_axis(1, p_y);
elements[2] = row2; set_axis(2, p_z);
} }
inline Basis() {} inline Basis() {}