mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Matrix32: Add constructor that takes six real_t params
This commit is contained in:
parent
41a58f7935
commit
3578800230
@ -618,6 +618,15 @@ struct Matrix32 {
|
|||||||
|
|
||||||
operator String() const;
|
operator String() const;
|
||||||
|
|
||||||
|
Matrix32(real_t xx, real_t xy, real_t yx, real_t yy, real_t ox, real_t oy) {
|
||||||
|
|
||||||
|
elements[0][0] = xx;
|
||||||
|
elements[0][1] = xy;
|
||||||
|
elements[1][0] = yx;
|
||||||
|
elements[1][1] = yy;
|
||||||
|
elements[2][0] = ox;
|
||||||
|
elements[2][1] = oy;
|
||||||
|
}
|
||||||
|
|
||||||
Matrix32(real_t p_rot, const Vector2& p_pos);
|
Matrix32(real_t p_rot, const Vector2& p_pos);
|
||||||
Matrix32() { elements[0][0]=1.0; elements[1][1]=1.0; }
|
Matrix32() { elements[0][0]=1.0; elements[1][1]=1.0; }
|
||||||
|
Loading…
Reference in New Issue
Block a user