aboutsummaryrefslogtreecommitdiff
path: root/core/math/math_funcs.h
Commit message (Collapse)AuthorAgeFilesLines
* Small performance fix to wrapfChaosus2018-04-131-2/+2
|
* Update wrap functionsChaosus2018-03-061-2/+12
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-071-1/+1
|
* Add support for the TAU constant. Fixes #12094.Goutte2017-11-121-0/+1
|
* Remove get_default_video_mode definition on OSX/iOSRémi Verschelde2017-11-091-1/+1
| | | | | | | | It had been missed in d09160a8b67fdc60e8108962c4e9bd4c0bc7f13e and broke compilation for those platforms. Took the opportunity to run clang-format on the code base to fix some corner cases that went through our static tests/were overlooked recently.
* Merge pull request #12035 from Chaosus/wrapfuncRémi Verschelde2017-10-311-1/+4
|\ | | | | Added new Wrap functions for numbers
| * Added new wrap functionsChaosus2017-10-131-1/+4
| |
* | Merge pull request #11401 from SaracenOne/snapped_dragRémi Verschelde2017-10-221-0/+17
|\ \ | |/ |/| Added snapping to spatial drag and drop.
| * Added snapping to spatial drag and drop.SaracenOne2017-09-201-0/+17
| |
* | verbose and platform specific implementation for is_nanABU MD. MARUF SARKER2017-09-201-2/+38
|/
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* GDScript Built-in: add inverse_lerp & range_lerpPoommetee Ketson2017-08-181-2/+8
|
* Use inline code for isinf as a workaround for libstdc++ versions from gcc ↵Ferenc Arn2017-06-141-4/+4
| | | | | | 5.x era. Fixes #9166.
* Merge pull request #8548 from tagcup/etc2compJuan Linietsky2017-06-131-0/+17
|\ | | | | Add ETC1/ETC2 compression support though etc2comp.
| * Add ETC1/ETC2 compression support though etc2comp.Ferenc Arn2017-05-311-0/+17
| | | | | | | | | | | | Remove rg-etc1 code. Also updated travis to use ubuntu 14.04. Fixes #8457.
* | Changed enum to const because enum with uint64 size does not work on VSC++ ↵Thomas Görlich2017-05-291-3/+1
|/ | | | Compiler
* -Added EXR supprot for HDR (no BC6 compression yet though)Juan Linietsky2017-05-261-0/+4
| | | | | | -Improvements to texture importer -Proper detection of S3TC compression modes, and added all modes to Image -Fixes to non-power of 2 compressed textures, which should all be supported by GLES3
* Move core thirdparty files to thirdparty/{minizip,misc}Rémi Verschelde2017-04-281-1/+2
|
* Merge pull request #8277 from tagcup/math_checksRémi Verschelde2017-04-241-1/+1
|\ | | | | Added various functions basic math classes. Also enabled math checks …
| * Added various functions basic math classes. Also enabled math checks only ↵Ferenc Arn2017-04-061-1/+1
| | | | | | | | | | | | | | | | for debug builds. Added set_scale, set_rotation_euler, set_rotation_axis_angle. Addresses #2565 directly. Added an euler angle constructor for Basis in GDScript and also exposed is_normalized for vectors and quaternions. Various other changes mostly cosmetic in nature.
* | Fix PRNG randomization.Ferenc Arn2017-04-171-1/+1
| | | | | | | | | | | | | | | | PCG32 doesn't like small seeds, which leads to zero random values (prior to #7532, zero values were handled as special cases). Use a large default seed, and also add a shift in Math::randomize. Fixes #8423.
* | Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|/
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-129/+110
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Fix RANDOM_MAX, which is 2^32-1 with PCG32.Leandro Motta Barros2017-03-011-1/+1
|
* Inf and NaN support added to GDScript.Saracen2017-02-281-0/+1
|
* Correct hash behavior for floating point numbersHein-Pieter van Braam2017-02-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes HashMap where a key or part of a key is a floating point number. To fix this the following has been done: * HashMap now takes an extra template argument Comparator. This class gets used to compare keys. The default Comperator now works correctly for common types and floating point numbets. * Variant implements ::hash_compare() now. This function implements nan-safe comparison for all types with components that contain floating point numbers. * Variant now has a VariantComparator which uses Variant::hash_compare() safely compare floating point components of variant's types. * The hash functions for floating point numbers will now normalize NaN values so that all floating point numbers that are NaN hash to the same value. C++ module writers that want to use HashMap internally in their modules can now also safeguard against this crash by defining their on Comperator class that safely compares their types. GDScript users, or writers of modules that don't use HashMap internally in their modules don't need to do anything. This fixes #7354 and fixes #6947.
* Merge pull request #7528 from tagcup/real_t_float_fixesJuan Linietsky2017-01-201-134/+90
|\ | | | | Use real_t rather than float or double in generic functions (core/mat…
| * Overloaded basic math funcs (double and float variants). Use real_t rather ↵Ferenc Arn2017-01-161-134/+90
| | | | | | | | | | | | than float or double in generic functions (core/math) whenever possible. Also inlined some more math functions.
* | Some changes in the header so Godot3 compiles again on Windows.BastiaanOlij2017-01-181-3/+2
|/
* Replace the existing PRNG (Xorshift31) with (minimal) PCG (XSH-RR variant ↵Ferenc Arn2017-01-151-3/+4
| | | | | | with 32-bit output, 64-bit state). PCG is better than many alternatives by many metrics (see www.pcg-random.org) including statistical quality with good speed.
* made math functions inlnieJuan Linietsky2017-01-121-23/+118
|
* Use right handed coordinate system for rotation matrices and quaternions. ↵Ferenc Arn2017-01-031-0/+9
| | | | | | | | Also fixes Euler angles (XYZ convention, which is used as default by Blender). Furthermore, functions which expect a rotation matrix will now give an error simply, rather than trying to orthonormalize such matrices. The documentation for such functions has be updated accordingly. This commit breaks code using 3D rotations, and is a part of the breaking changes in 2.1 -> 3.0 transition. The code affected within Godot code base is fixed in this commit.
* Merge remote-tracking branch 'origin/gles3' into gles3-on-masterRémi Verschelde2017-01-021-0/+102
|\ | | | | | | | | Various merge conflicts have been fixed manually and some mistakes might have been made - time will tell :)
| * all light types and shadows are working, pending a lot of clean-upJuan Linietsky2016-11-091-1/+1
| |
| * Everything returning to normal in 3D, still a long way to goJuan Linietsky2016-10-191-0/+102
| | | | | | | | -implemented the scene part of visual server and rasterizer, objects without lighting and material are rendererd only
* | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
|/ | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Changed the way the step decimals are computed to a safer way, fixes many ↵Juan Linietsky2016-07-261-1/+1
| | | | issues.
* remove trailing whitespaceHubert Jarosz2016-03-091-8/+8
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* Fix some copy-paste mistakes in linear/db volume functionsRémi Verschelde2015-09-261-2/+2
|
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* FixesJuan Linietsky2014-12-201-1/+1
| | | | | | | | -=-=-= -Added missing quaternion constructor -code completion fixes -winrt fixes
* Small batch of fixesJuan Linietsky2014-12-151-1/+5
| | | | | | | -=-=-=-=-=-=-=-=-=-= -Fixed looping error in AudioStreamResampled -winrt port progress -fixes in material in ambient light
* Make math_funcs.h use lrint on msvc 2013Matthew Casey2014-02-111-2/+2
|
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+180