summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-04-24 16:59:24 -0500
committerAaron Franke <arnfranke@yahoo.com>2022-04-29 08:02:39 -0500
commitb831fb0a540bee165d46c1c229f2ec4569c88461 (patch)
tree87110f1b711f153d435e05a7658dec15d18efd90 /scene/animation
parent81139c94a8b1fd0ea29cb64627f4b8dc0962a5b7 (diff)
Rename Transform2D "elements" to "columns"
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/tween.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp
index 9bd1624e89..8467b8af5e 100644
--- a/scene/animation/tween.cpp
+++ b/scene/animation/tween.cpp
@@ -451,12 +451,12 @@ Variant Tween::interpolate_variant(Variant p_initial_val, Variant p_delta_val, f
Transform2D d = p_delta_val;
Transform2D r;
- APPLY_EQUATION(elements[0][0]);
- APPLY_EQUATION(elements[0][1]);
- APPLY_EQUATION(elements[1][0]);
- APPLY_EQUATION(elements[1][1]);
- APPLY_EQUATION(elements[2][0]);
- APPLY_EQUATION(elements[2][1]);
+ APPLY_EQUATION(columns[0][0]);
+ APPLY_EQUATION(columns[0][1]);
+ APPLY_EQUATION(columns[1][0]);
+ APPLY_EQUATION(columns[1][1]);
+ APPLY_EQUATION(columns[2][0]);
+ APPLY_EQUATION(columns[2][1]);
return r;
}
@@ -565,12 +565,12 @@ Variant Tween::calculate_delta_value(Variant p_intial_val, Variant p_final_val)
case Variant::TRANSFORM2D: {
Transform2D i = p_intial_val;
Transform2D f = p_final_val;
- return Transform2D(f.elements[0][0] - i.elements[0][0],
- f.elements[0][1] - i.elements[0][1],
- f.elements[1][0] - i.elements[1][0],
- f.elements[1][1] - i.elements[1][1],
- f.elements[2][0] - i.elements[2][0],
- f.elements[2][1] - i.elements[2][1]);
+ return Transform2D(f.columns[0][0] - i.columns[0][0],
+ f.columns[0][1] - i.columns[0][1],
+ f.columns[1][0] - i.columns[1][0],
+ f.columns[1][1] - i.columns[1][1],
+ f.columns[2][0] - i.columns[2][0],
+ f.columns[2][1] - i.columns[2][1]);
}
case Variant::AABB: {