diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-09-19 18:22:29 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-09-19 18:22:52 -0500 |
commit | e30c858c5d959c9216006839bed00a30a6977d6b (patch) | |
tree | 826ee40d5a5ad67d6c6f5346a55e41f238873347 /src/variant/rect2.cpp | |
parent | a330342e4fd9f19edd2733afdc0f7c75179bf9c8 (diff) | |
download | redot-cpp-e30c858c5d959c9216006839bed00a30a6977d6b.tar.gz |
Rename Transform2D "elements" to "columns"
https://github.com/godotengine/godot/pull/60627
Diffstat (limited to 'src/variant/rect2.cpp')
-rw-r--r-- | src/variant/rect2.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/variant/rect2.cpp b/src/variant/rect2.cpp index 3148f84..53f06c6 100644 --- a/src/variant/rect2.cpp +++ b/src/variant/rect2.cpp @@ -193,33 +193,33 @@ next4: Vector2(position.x + size.x, position.y + size.y), }; - real_t maxa = p_xform.elements[0].dot(xf_points2[0]); + real_t maxa = p_xform.columns[0].dot(xf_points2[0]); real_t mina = maxa; - real_t dp = p_xform.elements[0].dot(xf_points2[1]); + real_t dp = p_xform.columns[0].dot(xf_points2[1]); maxa = Math::max(dp, maxa); mina = Math::min(dp, mina); - dp = p_xform.elements[0].dot(xf_points2[2]); + dp = p_xform.columns[0].dot(xf_points2[2]); maxa = Math::max(dp, maxa); mina = Math::min(dp, mina); - dp = p_xform.elements[0].dot(xf_points2[3]); + dp = p_xform.columns[0].dot(xf_points2[3]); maxa = Math::max(dp, maxa); mina = Math::min(dp, mina); - real_t maxb = p_xform.elements[0].dot(xf_points[0]); + real_t maxb = p_xform.columns[0].dot(xf_points[0]); real_t minb = maxb; - dp = p_xform.elements[0].dot(xf_points[1]); + dp = p_xform.columns[0].dot(xf_points[1]); maxb = Math::max(dp, maxb); minb = Math::min(dp, minb); - dp = p_xform.elements[0].dot(xf_points[2]); + dp = p_xform.columns[0].dot(xf_points[2]); maxb = Math::max(dp, maxb); minb = Math::min(dp, minb); - dp = p_xform.elements[0].dot(xf_points[3]); + dp = p_xform.columns[0].dot(xf_points[3]); maxb = Math::max(dp, maxb); minb = Math::min(dp, minb); @@ -230,33 +230,33 @@ next4: return false; } - maxa = p_xform.elements[1].dot(xf_points2[0]); + maxa = p_xform.columns[1].dot(xf_points2[0]); mina = maxa; - dp = p_xform.elements[1].dot(xf_points2[1]); + dp = p_xform.columns[1].dot(xf_points2[1]); maxa = Math::max(dp, maxa); mina = Math::min(dp, mina); - dp = p_xform.elements[1].dot(xf_points2[2]); + dp = p_xform.columns[1].dot(xf_points2[2]); maxa = Math::max(dp, maxa); mina = Math::min(dp, mina); - dp = p_xform.elements[1].dot(xf_points2[3]); + dp = p_xform.columns[1].dot(xf_points2[3]); maxa = Math::max(dp, maxa); mina = Math::min(dp, mina); - maxb = p_xform.elements[1].dot(xf_points[0]); + maxb = p_xform.columns[1].dot(xf_points[0]); minb = maxb; - dp = p_xform.elements[1].dot(xf_points[1]); + dp = p_xform.columns[1].dot(xf_points[1]); maxb = Math::max(dp, maxb); minb = Math::min(dp, minb); - dp = p_xform.elements[1].dot(xf_points[2]); + dp = p_xform.columns[1].dot(xf_points[2]); maxb = Math::max(dp, maxb); minb = Math::min(dp, minb); - dp = p_xform.elements[1].dot(xf_points[3]); + dp = p_xform.columns[1].dot(xf_points[3]); maxb = Math::max(dp, maxb); minb = Math::min(dp, minb); |