mirror of
https://github.com/tiennm99/godot.git
synced 2026-06-24 09:38:24 +00:00
91e9ad92f5
The main change is to caculate tangent directly from bezier curve, without going through discretized polyline, avoiding pitfalls of discretization. A similar refacor had been applied to Curve3D. The test cases for Curve2D is updated, comparing floating point with is_equal_approxmiate() instead of `==`, in order to avoid float precision problem.