godot/core/math
Ferenc Arn f271591ac2 Various corrections in 2D math.
This is the follow up for the 2D changes mentioned in PR #6865. It fixes various mistakes regarding the order of matrix indices, order of transformation operations, usage of atan2 function and ensures that the sense of rotation is compatible with a left-handed coordinate system with Y-axis pointing down (which flips the sense of rotations along the z-axis). Also replaced float with real_t, and tried to make use of Matrix32 methods rather than accessing its elements directly.

Affected code in the Godot code base is also fixed in this commit.

The user code using functions involving angles such as atan2, angle_to, get_rotation, set_rotation will need to be updated to conform with the new behavior. Furthermore, the sign of the rotation angles in existing 2D scene files need to be flipped as well.
2017-01-10 10:14:20 -06:00
..
a_star.cpp ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
a_star.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
aabb.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
aabb.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
bsp_tree.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
bsp_tree.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
camera_matrix.cpp Merge remote-tracking branch 'origin/gles3' into gles3-on-master 2017-01-02 21:52:26 +01:00
camera_matrix.h Merge remote-tracking branch 'origin/gles3' into gles3-on-master 2017-01-02 21:52:26 +01:00
face3.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
face3.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
geometry.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
geometry.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
math_2d.cpp Various corrections in 2D math. 2017-01-10 10:14:20 -06:00
math_2d.h Various corrections in 2D math. 2017-01-10 10:14:20 -06:00
math_defs.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
math_funcs.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
math_funcs.h Use right handed coordinate system for rotation matrices and quaternions. Also fixes Euler angles (XYZ convention, which is used as default by Blender). 2017-01-03 17:41:04 -06:00
matrix3.cpp Use right handed coordinate system for rotation matrices and quaternions. Also fixes Euler angles (XYZ convention, which is used as default by Blender). 2017-01-03 17:41:04 -06:00
matrix3.h Use right handed coordinate system for rotation matrices and quaternions. Also fixes Euler angles (XYZ convention, which is used as default by Blender). 2017-01-03 17:41:04 -06:00
octree.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
plane.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
plane.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
quat.cpp Use right handed coordinate system for rotation matrices and quaternions. Also fixes Euler angles (XYZ convention, which is used as default by Blender). 2017-01-03 17:41:04 -06:00
quat.h Use right handed coordinate system for rotation matrices and quaternions. Also fixes Euler angles (XYZ convention, which is used as default by Blender). 2017-01-03 17:41:04 -06:00
quick_hull.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
quick_hull.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
transform.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
transform.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
triangle_mesh.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
triangle_mesh.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
triangulate.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
triangulate.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
triangulator.cpp begin new serialization framework 2015-02-15 01:21:26 -03:00
triangulator.h begin new serialization framework 2015-02-15 01:21:26 -03:00
vector3.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
vector3.h Use right handed coordinate system for rotation matrices and quaternions. Also fixes Euler angles (XYZ convention, which is used as default by Blender). 2017-01-03 17:41:04 -06:00