Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-03-15 | BLI_assert: extract from BLI_utildefines | Campbell Barton | |
BLI_utildefines is quite large, defining many unrelated things. Add BLI_assert to include in inline headers, so math defines don't pull in too much. | |||
2018-02-14 | Math utils: Add clamping functions | Sergey Sharybin | |
2018-01-19 | Fixup for integer digits commit | Dalai Felinto | |
2018-01-10 | math utils: Add size_t version of min and max functions | Sergey Sharybin | |
2017-09-27 | Math Lib: Add non-clamped round_* functions | Campbell Barton | |
Replace iroundf with round_fl_to_int, add other types | |||
2017-09-18 | Math Lib: clamped rounding utility functions | Campbell Barton | |
2017-08-01 | BLI_math: add simple helper to get amount of 'integer' digits in a float number. | Bastien Montagne | |
2016-12-03 | Fix macOS build with openimageio 1.7.8 and openexr. | Brecht Van Lommel | |
These macros conflict and are no longer needed with C99 or C++ anyway. | |||
2016-05-17 | C99/C++11: replace deprecated finite() by isfinite(). | Brecht Van Lommel | |
2015-07-10 | BLI_math 'compare' cleanup & enhancements. | Bastien Montagne | |
This commit: * Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats. * Makes 'compare_vxvx' functions use that new 'compare_ff' one. * Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats. * Adds matching 'compare_vxvx_relative' functions. * Adds some basic tests for compare_ff_relative. See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative (using a very small absolute max_diff), but these do not have exact same behavior... Left a comment there for now, we can do it later if/when we are sure it won't break anything! | |||
2015-06-20 | Cleanup: checks for unsupported MSVC versions | Campbell Barton | |
2015-04-24 | Math Lib: pow_i for int power-of | Campbell Barton | |
2015-04-21 | Math Lib: handling bits handling into own file | Campbell Barton | |
2015-01-31 | Comment for math defines, also add M_PI_4 | Campbell Barton | |
2014-12-27 | Fix T43034: beautify-fill leaves zero area tri's | Campbell Barton | |
2014-11-22 | Math Lib: add constant: M_SQRT1_3 1/sqrt(3) | Campbell Barton | |
2014-11-11 | Avoid calling powf with integer exponent in more places | Sergej Reich | |
Move powX functions from particle code into math library and use them. | |||
2014-10-10 | Code cleanup: Fix silly duplication of typecheck and swap macro | Sergey Sharybin | |
2014-09-30 | Use native float math functions for MSVC12 | Sv. Lockal | |
`double` surrogates are slow (e.g. pow is 2x slower than powf), and MSVC12 supports fp-math functions from C99. | |||
2014-08-14 | remove MAXFLOAT define | Campbell Barton | |
2014-08-07 | Cleanup: Remove special code for Visual Studio 2008. | Thomas Dinges | |
Goodbye VC2008, it has been a pleasure (more or less) :D SCons / CMake cleaenup will follow. Differential Revision: https://developer.blender.org/D715 | |||
2014-08-02 | Make CHECK_TYPE_NONCONST macro portable | Campbell Barton | |
also replace __typeof -> typeof | |||
2014-05-13 | Fix compilation error with debug SCons | Sergey Sharybin | |
For some reason SCons defines _DEBUG, not DEBUG as mathutils was expecting it to be. Made it so mathutils checks for NDEBUG which mimics BLI_assert define. | |||
2014-04-19 | Math Lib: add shell_v3v3_normalized_to_dist and v2 version | Campbell Barton | |
bypass angle calculation to avoids (asin, sqrt, cos). | |||
2014-04-19 | Math Lib: add rotation_between_vecs_to_mat3 | Campbell Barton | |
- behaves like rotation_between_vecs_to_quat - avoids calling sin,cos calls (approx 1.6x faster). | |||
2014-04-11 | Math Lib: use less strict epsilon with BLI_ASSERT_UNIT_QUAT | Campbell Barton | |
was causing issues with pointcache | |||
2014-04-05 | Math Lib: add power of 2 min/max for unsigned ints | Campbell Barton | |
2014-03-20 | Math Lib: add angle_qt functions | Campbell Barton | |
2014-02-15 | Compile fix for 004decc1d940... | Thomas Dinges | |
2014-02-15 | Code cleanup: warnings | Campbell Barton | |
2014-01-15 | Math Lib: add iroundf function for: (int)floorf(a + 0.5f) | Campbell Barton | |
2014-01-03 | Code Cleanup: WIN32 defines, check for _MSC_VER instead of !FREE_WINDOWS | Campbell Barton | |
2014-01-03 | Fix :I broke the build for MSVC 2008 this fixes it | Martijn Berger | |
2014-01-03 | Fix T37987: MSVC 2013 has C99 headers and warns for out define hypot _hypot ↵ | Martijn Berger | |
for good reason it seems | |||
2013-12-07 | Util Macros: reduce multiple access & conversion for CLAMP/CLAMPIS/ABS | Campbell Barton | |
2013-12-05 | Code Cleanup: use strict flags for math lib, add inline declarations | Campbell Barton | |
2013-11-30 | Woo Hoo. First git commit. | Alexandr Kuznetsov | |
Changes for VC2013 Now, I can build Blender with VC2013 with Cycles, Collada, OpenExr,OpenImageIO disabled. Also, you need VC2008 sp1 installed to make old libs compatible. | |||
2013-11-26 | Math library: minor additions sqrtf_signed and copy_v2_fl2 | Campbell Barton | |
2013-09-06 | rename positive_mod to mod_i, make it work with nagative numbers (matching ↵ | Campbell Barton | |
pythons modulo), and use in a few more places. allow mesh-checker-deselect to have a negative offset. | |||
2013-09-05 | add positive_mod() utility function. | Campbell Barton | |
2013-08-13 | use __builtin_nanf with gcc and clang. | Campbell Barton | |
2013-08-13 | Moved NAN_FLT define to BLI_math, this may come in useful. | Lukas Toenne | |
2013-05-08 | add in asserts when rv3d->viewmatob, rv3d->persmatob are not initialized. | Campbell Barton | |
This is often hard to spot since in many cases it works correctly even when not initialized but may still fail in other situations. | |||
2013-04-25 | Fix part of #34640: colors darkening when using the vertex paint blur tool. | Brecht Van Lommel | |
The problem was that vertex colors only have 8 bits of precision, and integer division always rounds down, so after some color blending iterations everything gets darker. Instead use integer division that behaves like round() instead of floor() for blending operations. | |||
2013-03-13 | attempt to quiet warnings for gcc4.2 | Campbell Barton | |
2013-03-12 | use gcc warning -Wredundant-decls, exposes some odd/duplicate declarations ↵ | Campbell Barton | |
which have been removed. | |||
2013-02-19 | internal: increase error threshold for normalize assert since normals ↵ | Campbell Barton | |
converted from shorts are not always exactly unit length. | |||
2013-02-19 | make asserts that check for unit length vectors into a macro. | Campbell Barton | |
this was really not nice logic to try to fit into an assert. | |||
2013-01-25 | Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac. | Brecht Van Lommel | |
2013-01-25 | header cleanup, include BLI before BKE, also use bool for ntreeShaderExecTree | Campbell Barton | |