diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-30 01:42:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-30 01:42:33 +0300 |
commit | d98093a91ac7ce96ab6b1e14168493f9f69f379d (patch) | |
tree | a89141e41ab7dfaa81b05b5f3cf97dd7baa8469e /source/blender/blenlib/BLI_math_base.h | |
parent | cd154da9732962870339952898499ed1b1c32d93 (diff) |
- added a new math function double_round, useful for rounding a number to a number of decimal places.
- added Mathutils vector method, vec.asTuple(round), since this is tedious in python and fairly common task.
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 4e845ae35d9..af301386920 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -148,6 +148,8 @@ float power_of_2(float f); float shell_angle_to_dist(float angle); +double double_round(double x, int ndigits); + #ifdef __cplusplus } #endif |