Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-19Cleanup: comment blocksCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2018-06-29Merge branch 'master' into blender2.8Campbell Barton
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for BLICampbell Barton
2017-11-14BLI: sync changes from 2.8Campbell Barton
2017-10-07Cleanup: style, duplicate includesCampbell Barton
2017-08-04BLI_math: use const args for mul_m#_seriesCampbell Barton
2017-04-26BLI_math: add helper function to extract XY 2D scale from a 4D matrix.Bastien Montagne
2016-12-01Merge branch 'master' into blender2.8Lukas Tönne
2016-11-25Math Lib: rotate matrix cleanupCampbell Barton
- Remove 'rotate_m2', unlike 'rotate_m4' it created a new matrix duplicating 'angle_to_mat2' - now used instead. (better avoid matching functions having different behavior). - Add 'axis_angle_to_mat4_single', convenience wrapper for 'axis_angle_to_mat3_single'. - Replace 'unit_m4(), rotate_m4()' with a single call to 'axis_angle_to_mat4_single'.
2016-09-25port math function from Viewport FXMike Erwin
mul_v4_m4v3(r, M, v) means r = M * vec4(v, 1.0) Based on rB194998766c65
2016-09-25specialize mat3 multiply routinesMike Erwin
Same as 5c6baf1ee9754e39392926cd077bb2097baf39b9 but for 3x3 matrices.
2016-09-25specialize mat4 multiply routinesMike Erwin
mul_m4_m4m4(R, A, B) gives us R = AB in general. Existing code assumed the worst, that A and B both alias the output R. For safety it makes internal copies of A and B before calculating & writing R. This is the least common case. Usually all 3 matrices differ. Often we see M = AM or M = MB, but never M = MM. With this revision mul_m4_m4m4 is called in exactly the same way but copies inputs only when needed. If you know the inputs are independent of the output use the "uniq" variant to skip the saftety checks.
2016-09-24constify BLI_math_matrix inputsMike Erwin
GPU_matrix needs this very soon, and it's good practice in general. also sprinkled in some TODOs for later
2016-06-23Fix minor typo - Was m[3][4] instead of m[4][4] for a 4x4 matrixJoshua Leung
2016-06-16BLI_math: Add double versions of functionsCampbell Barton
- mul_v3_m3v3_db - mul_m3_v3_db - negate_v3_db
2016-05-13BLI_math: add 'equals_m4m4' (and 'm3' variant) helpers.Bastien Montagne
2015-12-07Added a comment to our use of the term 'adjoint' in BLI_math.Lukas Tönne
In modern usage this means the conjugate transpose, but we stick to the classical usage (i.e. adjugate matrix), like Eigen does.
2015-10-15BLI_math: add normalize_m#_ex functionsCampbell Barton
Useful when we need to use the axis lengths too.
2015-10-09BLI_math: add mat3_polar_decompose, interp_m3_m3m3 and interp_m4_m4m4.Bastien Montagne
mat3_polar_decompose gives the right polar decomposition of given matrix, as a pair (U, P) of matrices. interp_m3_m3m3 uses that polar decomposition to perform a correct matrix interpolation, even with non-uniformly scaled ones (where blend_m3_m3m3 would fail). interp_m4_m4m4 just adds translation interpolation to the _m3 variant.
2015-07-11BLI_matrix space_transform: Add a 'local-invariant' setter.Bastien Montagne
`BLI_space_transform_from_matrices()` defines a 'global-invariant' transform (same point in global space, two different coordinates in local and target spaces). New `BLI_space_transform_global_from_matrices()` is kind of opposite, it defines a 'local-invariant' transform (two different points in global space, same coordinates in local and target spaces). Useful to 'match' meshes.
2015-04-27Math Lib: add mul_v3_mat3_m4v3Campbell Barton
2014-10-30Complementary fix for rB8054372: Follow the common naming scheme byLukas Tönne
using negate_mat3_m4 instead of negate_m4. This avoids changing the behavior and only flips the 3x3 part of the matrix.
2014-10-30Math Lib: add transpose_m3_m3, m3_m4, m4_m4Campbell Barton
2014-10-30Fix negate_m3 (taking 4x4 matrix)Campbell Barton
Cycles bake used incorrectly.
2014-09-16Math Lib: add mul_v3_project_m4_v3Campbell Barton
2014-09-06Math Lib: Add copy_m2_m2, unit_m2, zero_m2Campbell Barton
2014-08-01Cleanup: Move SpaceTransform helpers from `BKE_shrinkwrap` to `BLI_math_matrix`.Bastien Montagne
2014-07-21Math Lib: rename mul_serie_m3 to mul_m3_series & reorder argsCampbell Barton
Importantly, reversed mul_serie_m3 argument order (so it matches the m4 function)
2014-07-20Math Lib: use variable length args for mul_serie_m3,m4 (instead of trailing ↵Campbell Barton
NULL's)
2014-06-26Code cleanup: remove MAT3/4_UNITY defines, just call unit_m3/4Campbell Barton
2014-05-29Math lib: add negate_m3, negate_m4Campbell Barton
2014-05-23Bake-API: relaxing in the check for scale uniformityDalai Felinto
It still warns the user that there may be an error, but the baking goes on. Also using the new is_uniform_scaled_m4() instead of float comparison. Reported and fix suggested by Campbell Barton as a concern over 2bfc3deb
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-30Convenience macro for print_ funcs, saves passing id each timeCampbell Barton
2014-03-25Fix T38870: Freezes when jumping in front of a keyframe.Sergey Sharybin
Issue was caused by inverting a degenerate matrix when evaluating drivers. Solved by using tweaked inverse code (same as used in Cycles). Should have no affect on cases when matrix is not degenerate.
2014-01-05Text3d: selection in editmode now follows rotated text along pathCampbell Barton
2013-10-26correct typoCampbell Barton
2013-10-20Code cleanup: added generic function copt_m3_m3dSergey Sharybin
2013-10-19Move utility functions from mball to mathutilsSergey Sharybin
2013-09-11Fix #36701: Mask pivioting doesnt honor parentingSergey Sharybin
Made mask transformation aware of parent matrix.
2013-07-30function renaming for own recently added BLI_math functions, suggested by ↵Campbell Barton
Brecht.
2013-07-26fix [#36282] Spin error with non uniform scaleCampbell Barton
add support for passing object matrix to bmesh transform operators.
2013-07-26optimization: call one bmesh operator for rotate (not 3).Campbell Barton
added pivot_m4() utility function since rotating about an arbitrary point is handy.
2013-05-26BLI_math rename functions:Campbell Barton
- mult_m4_m4m4 -> mul_m4_m4m4 - mult_m3_m3m4 -> mul_m3_m3m4 these temporary names were used to avoid problems when argument order was switched.
2013-05-08add matrix multiply for projection that outputs 2d values.Campbell Barton