diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-01 19:26:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-01 19:26:42 +0300 |
commit | bfe1d0e0dc6281d33448c3d4ddfa2e231bbc5566 (patch) | |
tree | 14e9db1c58d7ffc33becc3ff5d74f4feb4c2d75e /source/blender/blenlib/BLI_dial_2d.h | |
parent | 297bf7235bc4b2384b99f41676a8c217f2ee3249 (diff) | |
parent | 75fc1c35070e0cf247f2d2e4cffe8a6e711522ff (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/blenlib/BLI_dial_2d.h')
-rw-r--r-- | source/blender/blenlib/BLI_dial_2d.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenlib/BLI_dial_2d.h b/source/blender/blenlib/BLI_dial_2d.h index dbd71a8ad3f..4a265164e10 100644 --- a/source/blender/blenlib/BLI_dial_2d.h +++ b/source/blender/blenlib/BLI_dial_2d.h @@ -25,14 +25,14 @@ * \ingroup bli * * \note dials act similar to old rotation based phones and output an angle. - * + * * They just are initialized with the center of the dial and a threshold value as input. - * - * When the distance of the current position of the dial from the center - * exceeds the threshold, this position is used to calculate the initial direction. + * + * When the distance of the current position of the dial from the center + * exceeds the threshold, this position is used to calculate the initial direction. * After that, the angle from the initial direction is calculated based on * current and previous directions of the digit, and returned to the user. - * + * * Usage examples: * * \code{.c} @@ -41,11 +41,11 @@ * float threshold = 0.5f; * float angle; * Dial *dial; - * + * * dial = BLI_dial_initialize(start_position, threshold); * * angle = BLI_dial_angle(dial, curent_position); - * + * * MEM_freeN(dial); * \endcode */ |