New upstream version 21.0.2+dfsg1
This commit is contained in:
parent
1f1bbb3518
commit
baafb6325b
706 changed files with 49633 additions and 5044 deletions
39
docs/sphinx/reference-libobs-graphics-math.rst
Normal file
39
docs/sphinx/reference-libobs-graphics-math.rst
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
Extra Math Functions/Macros
|
||||
===========================
|
||||
|
||||
.. code::
|
||||
|
||||
#include <graphics/math-extra.h>
|
||||
|
||||
Helper functions/macros for graphics math.
|
||||
|
||||
.. function:: RAD(val)
|
||||
|
||||
Macro that converts a floating point degrees value to radians.
|
||||
|
||||
.. function:: DEG(val)
|
||||
|
||||
Macro that converts a floating point radians value to degrees.
|
||||
|
||||
**LARGE_EPSILON** 1e-2f
|
||||
|
||||
Large epsilon value.
|
||||
|
||||
**EPSILON** 1e-4f
|
||||
|
||||
Epsilon value.
|
||||
|
||||
**TINY_EPSILON** 1e-5f
|
||||
|
||||
Tiny Epsilon value.
|
||||
|
||||
**M_INFINITE** 3.4e38f
|
||||
|
||||
Infinite value
|
||||
|
||||
---------------------
|
||||
|
||||
.. function:: float rand_float(int positive_only)
|
||||
|
||||
Generates a random floating point value (from -1.0f..1.0f, or
|
||||
0.0f..1.0f if *positive_only* is set).
|
||||
Loading…
Add table
Add a link
Reference in a new issue