summaryrefslogtreecommitdiff
path: root/core/math/quaternion.cpp
AgeCommit message (Collapse)Author
2023-01-06Merge pull request #70547 from TokageItLab/pingpong-wrapRémi Verschelde
Fix pingpong-loop with `loop_wrap` is not working & clean-up cubic interpolation key retrieve process
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-25Fix pingpong with loop wrap is not workingSilc Renew
2022-11-02Allow getting Quaternion rotation in different Euler ordersAaron Franke
2022-11-02Move EulerOrder enum to math_defs.h and global scopeAaron Franke
2022-11-01Replace Quaternion Euler constructor with `from_euler` methodAaron Franke
2022-10-08Add `is_finite` method for checking built-in typesHaoyu Qiu
2022-10-07Use float literals for float calculations in ColorAaron Franke
2022-08-23Merge pull request #64678 from TokageItLab/implement-ease-bakerRémi Verschelde
Fix Quaternion Tween and add Easing baker to AnimationTrackEditor
2022-08-22Fix Quaternion Tween and implement ease bakerSilc Renew
2022-08-19Make `cubic_interpolate()` consider key time in animationSilc Renew
2022-07-29Make `spherical_cubic_interpolate()` more stableSilc Renew
2022-07-27rename and unify notation for spherical interpolationSilc Renew
2022-07-25Fix cubic_slerpSilc 'Tokage' Renew
Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> Co-authored-by: Pasi Nuutinmaki <gnssstylist@sci.fi>
2022-03-16Fix blend animation to solve TRS track bug & blend order inconsistencySilc 'Tokage' Renew
2022-02-24Float literals - fix main primitives to use real_t castinglawnjelly
Uses (real_t) casting to ensure appropriate calculations are done in 32 bit where real_t is compiled as 32 bit.
2022-02-10Float literals - fix main primitives to use .flawnjelly
Converts float literals from double format (e.g. 0.0) to float format (e.g. 0.0f) where appropriate for 32 bit calculations.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-10-25Refactored Node3D rotation modesreduz
* Made the Basis euler orders indexed via enum. * Node3D has a new rotation_order property to choose Euler rotation order. * Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations. The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
2021-10-21Implement Animation Compressionreduz
Roughly based on https://github.com/godotengine/godot-proposals/issues/3375 (used format is slightly different). * Implement bitwidth based animation compression (see animation.h for format). * Can compress imported animations up to 10 times. * Compression format opens the door to streaming. * Works transparently (happens all inside animation.h)
2021-06-17Add Quaternion angle_to methodAaron Franke
2021-06-11Reformat structure string operatorsAaron Franke
The order of numbers is not changed except for Transform2D. All logic is done inside of their structures (and not in Variant). For the number of decimals printed, they now use String::num_real which works best with real_t, except for Color which is fixed at 4 decimals (this is a reliable number of float digits when converting from 16-bpc so it seems like a good choice)
2021-06-04Rename Quat to QuaternionMarcel Admiraal