1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5 6 <title>/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_cl.rsh File Reference</title> 7 <link href="tabs.css" rel="stylesheet" type="text/css"/> 8 <link href="doxygen.css" rel="stylesheet" type="text/css" /> 9 10 11 12 </head> 13 <body> 14 <div id="top"><!-- do not remove this div! --> 15 16 17 <!-- Generated by Doxygen 1.7.5.1 --> 18 <div id="navrow1" class="tabs"> 19 <ul class="tablist"> 20 <li><a href="index.html"><span>Overview</span></a></li> 21 <li class="current"><a href="globals.html"><span>Globals</span></a></li> 22 <li><a href="annotated.html"><span>Structs</span></a></li> 23 </ul> 24 </div> 25 </div> 26 <div class="header"> 27 <div class="summary"> 28 <a href="#func-members">Functions</a> </div> 29 <div class="headertitle"> 30 <div class="title">/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_cl.rsh File Reference</div> </div> 31 </div> 32 <div class="contents"> 33 <table class="memberdecls"> 34 <tr><td colspan="2"><h2><a name="func-members"></a> 35 Functions</h2></td></tr> 36 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#ac532b4c1895c8bd4fb75dc370c484351">char2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a67421c4b17df15a1c726d912770e5ca4">convert_char2</a> (<a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> v)</td></tr> 37 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a833bb5476683ec5692feaf0cd5dcdd80">convert_uchar2</a> (<a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> v)</td></tr> 38 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a303d3ad18aaeacfcfeda2b8580b98796">short2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a83e89db1940f3190fbec5bd823a99fc5">convert_short2</a> (<a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> v)</td></tr> 39 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a24a9d78cfc32475e2c6eb1cdec239bf2">ushort2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a6862ea6ddfba8a59796bc681a544fb4f">convert_ushort2</a> (<a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> v)</td></tr> 40 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a6bc1fa1354fe2145b8f12b4bbfafcf4c">int2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a9d2e4b8f0f25a7ccaed05248edc21f06">convert_int2</a> (<a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> v)</td></tr> 41 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#aaf90cd1f01a121e824fc6e1b927e7683">uint2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a01ff256469203ba33ba0f220b54e70d1">convert_uint2</a> (<a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> v)</td></tr> 42 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a5086d0fcb71f916c936af486ccf0dd41">float2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a1ad62d449c1e3548573c2f9c1a5cb13a">convert_float2</a> (<a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> v)</td></tr> 43 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a07648648c7f857cfd1479821d4389751">acos</a> (float)</td></tr> 44 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a6575106413ec72448439ef67f1309424">acosh</a> (float)</td></tr> 45 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a2c9092eb07e9df891935e93469e70d4e">acospi</a> (float v)</td></tr> 46 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a78b9d0583bd0699e2eac30d2a136817a">asin</a> (float)</td></tr> 47 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a4e3fe465ed5541af53192c59c80af1a0">asinh</a> (float)</td></tr> 48 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a812eb4521e65a451161417f9898384f7">asinpi</a> (float v)</td></tr> 49 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ab790c3a7df8fcbeab77f6c0e3b4dcada">atan</a> (float)</td></tr> 50 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aaf4b636b09041878e1542054c73d81e9">atan2</a> (float y, float x)</td></tr> 51 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a83bdf415cc561ff6237a124273d9fb0d">atanh</a> (float)</td></tr> 52 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a5052e31ce616d35aee25a3a83f6fc117">atanpi</a> (float v)</td></tr> 53 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a89ec5f6a2f64a0f9e97438fbd41aaace">atan2pi</a> (float y, float x)</td></tr> 54 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ae9d1787b55c2587478a24d96573225df">cbrt</a> (float)</td></tr> 55 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aa8fc6daff743a1b635ccbf9af83fe4e4">ceil</a> (float)</td></tr> 56 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a29f2602d95aa7b3950e2b77b3e268f7e">copysign</a> (float x, float y)</td></tr> 57 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a8eec7aeb4b0c46b06cbcd1a3ac3e6f05">cos</a> (float)</td></tr> 58 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ac8d88d83182afd591401eaed101d9670">cosh</a> (float)</td></tr> 59 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a258d2c828fd46eae2867373884d834a9">cospi</a> (float v)</td></tr> 60 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a2e24dc8594e758b64c340153f67a533c">erfc</a> (float)</td></tr> 61 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a139f102df651c25c26dd35d549173f57">erf</a> (float)</td></tr> 62 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a6d9aac64c2686961ca8f30e3c34fef36">exp</a> (float)</td></tr> 63 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a39bca19ee2b1aa95144e58eb4a1e4f88">exp2</a> (float)</td></tr> 64 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a9243de1d67fcc847a89f95748d664b19">pow</a> (float x, float y)</td></tr> 65 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a0225ff40d79f78260293e776c6a77422">exp10</a> (float v)</td></tr> 66 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a7996044b67be921a5e58e2fe76af66e2">expm1</a> (float)</td></tr> 67 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ad6e897f1acae252ec0901e3b122992ea">fabs</a> (float)</td></tr> 68 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ae7a7bac0f4e244594078f87b42c8716a">fdim</a> (float, float)</td></tr> 69 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aae2da38a7246378dff8014ec407a30c3">floor</a> (float)</td></tr> 70 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ac42909daec463fe449743e70baf8360d">fma</a> (float a, float b, float c)</td></tr> 71 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a60f2072d8a746e7fe05cd46dea0fefcc">fmax</a> (float x, float y)</td></tr> 72 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a1fd9d57c6c992866bf5161be2cf4c447">fmin</a> (float x, float y)</td></tr> 73 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a31d5e179730ae44e1dbc74c1535f392e">fmod</a> (float x, float y)</td></tr> 74 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a9374786a1bbe3d2dd886cfad642bfec6">fract</a> (float v, float *iptr)</td></tr> 75 <tr><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a84b546baf72a871a5ba688d434d6ce2b">fract</a> (float v)</td></tr> 76 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a778635fffed3cee8ab0800482ba53a30">frexp</a> (float v, int *iptr)</td></tr> 77 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a147f38d6e41f45de9b5e7c6f3dcac010">hypot</a> (float x, float y)</td></tr> 78 <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aad9a8beba52acb77b1efeba432e6cc2c">ilogb</a> (float)</td></tr> 79 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a013bc1dcda984cbc608e123ed38491e6">ldexp</a> (float x, int y)</td></tr> 80 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a3ff36f9b21927d6b4b58616e48fddcb4">lgamma</a> (float)</td></tr> 81 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a735f4e14e33c50348ef41220f9210bcc">lgamma</a> (float x, int *y)</td></tr> 82 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a3ff85f5f4b206ecf9ec9d128d7d18a08">log</a> (float)</td></tr> 83 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#af5c1bdba2a13aa2e2b0722287f6a919f">log10</a> (float)</td></tr> 84 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aab1c4f06daf6f2a50fd73f0c28929213">log2</a> (float v)</td></tr> 85 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ae10541ede49062ef7f977712c4878c1f">log1p</a> (float v)</td></tr> 86 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a28742d6ce2f20a61f16ecc08ed499871">logb</a> (float)</td></tr> 87 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a4f9086698f1eb466ba2dccf7e331cdc3">mad</a> (float a, float b, float c)</td></tr> 88 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a841633bcdcaeb6a514d9c6460f0adf2d">modf</a> (float x, float *iret)</td></tr> 89 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#adb11df05fb9985595af0a7bd882bdeac">nextafter</a> (float x, float y)</td></tr> 90 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a67d1fe795e092003f687f3cc6d3c407a">pown</a> (float v, int p)</td></tr> 91 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a316c30ba3e6bc11673bfd34bb4746d24">powr</a> (float v, float p)</td></tr> 92 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a5188ac0e3af95b0956c6abeafb74fda9">remainder</a> (float x, float y)</td></tr> 93 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#adb0ffe344ae56ca7fc9083c1f2943e55">rint</a> (float)</td></tr> 94 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a2776b517528b8185a6bb50753af0f6cf">rootn</a> (float v, int n)</td></tr> 95 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aff4846ab5b947550814d5414a2c3626f">round</a> (float)</td></tr> 96 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a92da0faef80c4d8f66e954c8c169a729">sqrt</a> (float)</td></tr> 97 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a8a3992b97cb199b1c8d598996b600988">rsqrt</a> (float v)</td></tr> 98 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a8c8cd526b44eb55aede77cf659f24306">sin</a> (float v)</td></tr> 99 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a892c91a30bbc713aa77105d8e9e25881">sincos</a> (float v, float *cosptr)</td></tr> 100 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ae686e0cc567f7ee2b0a84706aa486e4a">sinh</a> (float)</td></tr> 101 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a9ca027af0acf3ff22d91cd9489766976">sinpi</a> (float v)</td></tr> 102 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#af12e245af8ff9bb72b5000e7c26cd8fe">tan</a> (float v)</td></tr> 103 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#abc36e89ddb87ea78451d1c5921ddbd8d">tanh</a> (float)</td></tr> 104 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aee96c8910a7d8b0082574813b6b68b9a">tanpi</a> (float v)</td></tr> 105 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ab9f4cbfd2470420ee302f28cf3de6dd0">tgamma</a> (float)</td></tr> 106 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ad1a7c65693231219db1babeae1c41f15">trunc</a> (float)</td></tr> 107 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a1ed0afedda2068ad1f9ad14ef3449e50">abs</a> (char v)</td></tr> 108 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a8a0f94dce3caa2a50cbf2d9f4bc674ac">clz</a> (<a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> v)</td></tr> 109 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a5f61ca44b3ad4b11365b0c4137a22658">min</a> (<a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> v1, <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> v2)</td></tr> 110 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a616bf7a90d8d3c73a48d2c395d9dc4ea">max</a> (<a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> v1, <a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> v2)</td></tr> 111 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#afae5eac13e35acd0f47d7e3c601e16ed">clamp</a> (float amount, float low, float high)</td></tr> 112 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a0276b63d6905fa802032f1490a24515b">degrees</a> (float radians)</td></tr> 113 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a254612a612ff7539b01a1478e03d8697">mix</a> (float start, float stop, float amount)</td></tr> 114 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aceb63a0da6393b8ac2ed229bae6232d6">radians</a> (float degrees)</td></tr> 115 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a9f40337dfee48d1881b87b35aa8133dd">step</a> (float edge, float v)</td></tr> 116 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a9fe423cc7d4c6d767f8a608d2ee76657">sign</a> (float v)</td></tr> 117 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#add745d593bc2b23285bd10e52a204e25">cross</a> (<a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> lhs, <a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> rhs)</td></tr> 118 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#aa26d85eac3067e9769b33b6914b180f2">dot</a> (float lhs, float rhs)</td></tr> 119 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a902d4d2fab31ba8f9631b1f681e99baa">length</a> (float v)</td></tr> 120 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a412bf215ae838c65079560bbefefaca7">distance</a> (float lhs, float rhs)</td></tr> 121 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a69c2a56f743593439d5ae5e3ec8e517f">normalize</a> (float v)</td></tr> 122 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a49050a8e32c95f60df4eaba9d7dfdca6">half_recip</a> (float)</td></tr> 123 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a26e2c17b20ee4c98b78c365d390e4fb8">half_sqrt</a> (float)</td></tr> 124 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a0925ceb22d33dcbb45914350ffa2edea">half_rsqrt</a> (float v)</td></tr> 125 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a7c8f2f987044a360b5f616a80a74a4d5">fast_length</a> (float v)</td></tr> 126 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a4fcbdb9099e7d653a951cb344ba3c3c9">fast_distance</a> (float lhs, float rhs)</td></tr> 127 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a3878bee2879351f518be68e015d76a35">fast_normalize</a> (float v)</td></tr> 128 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#ab354691ecd844549b27ef9202e17f7ac">native_exp2</a> (float v)</td></tr> 129 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a45d8176823a05b891313f3d96decf491">native_exp</a> (float v)</td></tr> 130 <tr><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__cl_8rsh.html#a601ee3d2bf769f1cdc39a886f7a6c986">native_exp10</a> (float v)</td></tr> 131 </table> 132 <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> 133 <div class="textblock"><p>Basic math functions. </p> 134 135 <p>Definition in file <a class="el" href="rs__cl_8rsh_source.html">rs_cl.rsh</a>.</p> 136 </div><hr/><h2>Function Documentation</h2> 137 <a class="anchor" id="a1ed0afedda2068ad1f9ad14ef3449e50"></a><!-- doxytag: member="rs_cl.rsh::abs" ref="a1ed0afedda2068ad1f9ad14ef3449e50" args="(char v)" --> 138 <div class="memitem"> 139 <div class="memproto"> 140 <table class="memname"> 141 <tr> 142 <td class="memname"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> abs </td> 143 <td>(</td> 144 <td class="paramtype">char </td> 145 <td class="paramname"><em>v</em></td><td>)</td> 146 <td></td> 147 </tr> 148 </table> 149 </div> 150 <div class="memdoc"> 151 <p>Return the absolute value of a value.</p> 152 <p>Supports 1,2,3,4 components of char, short, int. </p> 153 154 </div> 155 </div> 156 <a class="anchor" id="a07648648c7f857cfd1479821d4389751"></a><!-- doxytag: member="rs_cl.rsh::acos" ref="a07648648c7f857cfd1479821d4389751" args="(float)" --> 157 <div class="memitem"> 158 <div class="memproto"> 159 <table class="memname"> 160 <tr> 161 <td class="memname">float acos </td> 162 <td>(</td> 163 <td class="paramtype">float </td> 164 <td class="paramname"></td><td>)</td> 165 <td></td> 166 </tr> 167 </table> 168 </div> 169 <div class="memdoc"> 170 <p>Return the inverse cosine.</p> 171 <p>Supports float, float2, float3, float4 </p> 172 173 </div> 174 </div> 175 <a class="anchor" id="a6575106413ec72448439ef67f1309424"></a><!-- doxytag: member="rs_cl.rsh::acosh" ref="a6575106413ec72448439ef67f1309424" args="(float)" --> 176 <div class="memitem"> 177 <div class="memproto"> 178 <table class="memname"> 179 <tr> 180 <td class="memname">float acosh </td> 181 <td>(</td> 182 <td class="paramtype">float </td> 183 <td class="paramname"></td><td>)</td> 184 <td></td> 185 </tr> 186 </table> 187 </div> 188 <div class="memdoc"> 189 <p>Return the inverse hyperbolic cosine.</p> 190 <p>Supports float, float2, float3, float4 </p> 191 192 </div> 193 </div> 194 <a class="anchor" id="a2c9092eb07e9df891935e93469e70d4e"></a><!-- doxytag: member="rs_cl.rsh::acospi" ref="a2c9092eb07e9df891935e93469e70d4e" args="(float v)" --> 195 <div class="memitem"> 196 <div class="memproto"> 197 <table class="memname"> 198 <tr> 199 <td class="memname">float acospi </td> 200 <td>(</td> 201 <td class="paramtype">float </td> 202 <td class="paramname"><em>v</em></td><td>)</td> 203 <td></td> 204 </tr> 205 </table> 206 </div> 207 <div class="memdoc"> 208 <p>Return the inverse cosine divided by PI.</p> 209 <p>Supports float, float2, float3, float4 </p> 210 211 </div> 212 </div> 213 <a class="anchor" id="a78b9d0583bd0699e2eac30d2a136817a"></a><!-- doxytag: member="rs_cl.rsh::asin" ref="a78b9d0583bd0699e2eac30d2a136817a" args="(float)" --> 214 <div class="memitem"> 215 <div class="memproto"> 216 <table class="memname"> 217 <tr> 218 <td class="memname">float asin </td> 219 <td>(</td> 220 <td class="paramtype">float </td> 221 <td class="paramname"></td><td>)</td> 222 <td></td> 223 </tr> 224 </table> 225 </div> 226 <div class="memdoc"> 227 <p>Return the inverse sine.</p> 228 <p>Supports float, float2, float3, float4 </p> 229 230 </div> 231 </div> 232 <a class="anchor" id="a4e3fe465ed5541af53192c59c80af1a0"></a><!-- doxytag: member="rs_cl.rsh::asinh" ref="a4e3fe465ed5541af53192c59c80af1a0" args="(float)" --> 233 <div class="memitem"> 234 <div class="memproto"> 235 <table class="memname"> 236 <tr> 237 <td class="memname">float asinh </td> 238 <td>(</td> 239 <td class="paramtype">float </td> 240 <td class="paramname"></td><td>)</td> 241 <td></td> 242 </tr> 243 </table> 244 </div> 245 <div class="memdoc"> 246 <p>Return the inverse hyperbolic sine.</p> 247 <p>Supports float, float2, float3, float4 </p> 248 249 </div> 250 </div> 251 <a class="anchor" id="a812eb4521e65a451161417f9898384f7"></a><!-- doxytag: member="rs_cl.rsh::asinpi" ref="a812eb4521e65a451161417f9898384f7" args="(float v)" --> 252 <div class="memitem"> 253 <div class="memproto"> 254 <table class="memname"> 255 <tr> 256 <td class="memname">float asinpi </td> 257 <td>(</td> 258 <td class="paramtype">float </td> 259 <td class="paramname"><em>v</em></td><td>)</td> 260 <td></td> 261 </tr> 262 </table> 263 </div> 264 <div class="memdoc"> 265 <p>Return the inverse sine divided by PI.</p> 266 <p>Supports float, float2, float3, float4 </p> 267 268 </div> 269 </div> 270 <a class="anchor" id="ab790c3a7df8fcbeab77f6c0e3b4dcada"></a><!-- doxytag: member="rs_cl.rsh::atan" ref="ab790c3a7df8fcbeab77f6c0e3b4dcada" args="(float)" --> 271 <div class="memitem"> 272 <div class="memproto"> 273 <table class="memname"> 274 <tr> 275 <td class="memname">float atan </td> 276 <td>(</td> 277 <td class="paramtype">float </td> 278 <td class="paramname"></td><td>)</td> 279 <td></td> 280 </tr> 281 </table> 282 </div> 283 <div class="memdoc"> 284 <p>Return the inverse tangent.</p> 285 <p>Supports float, float2, float3, float4 </p> 286 287 </div> 288 </div> 289 <a class="anchor" id="aaf4b636b09041878e1542054c73d81e9"></a><!-- doxytag: member="rs_cl.rsh::atan2" ref="aaf4b636b09041878e1542054c73d81e9" args="(float y, float x)" --> 290 <div class="memitem"> 291 <div class="memproto"> 292 <table class="memname"> 293 <tr> 294 <td class="memname">float atan2 </td> 295 <td>(</td> 296 <td class="paramtype">float </td> 297 <td class="paramname"><em>y</em>, </td> 298 </tr> 299 <tr> 300 <td class="paramkey"></td> 301 <td></td> 302 <td class="paramtype">float </td> 303 <td class="paramname"><em>x</em> </td> 304 </tr> 305 <tr> 306 <td></td> 307 <td>)</td> 308 <td></td><td></td> 309 </tr> 310 </table> 311 </div> 312 <div class="memdoc"> 313 <p>Return the inverse tangent of y / x.</p> 314 <p>Supports float, float2, float3, float4. Both arguments must be of the same type.</p> 315 <dl><dt><b>Parameters:</b></dt><dd> 316 <table class="params"> 317 <tr><td class="paramname">y</td><td></td></tr> 318 <tr><td class="paramname">x</td><td></td></tr> 319 </table> 320 </dd> 321 </dl> 322 323 </div> 324 </div> 325 <a class="anchor" id="a89ec5f6a2f64a0f9e97438fbd41aaace"></a><!-- doxytag: member="rs_cl.rsh::atan2pi" ref="a89ec5f6a2f64a0f9e97438fbd41aaace" args="(float y, float x)" --> 326 <div class="memitem"> 327 <div class="memproto"> 328 <table class="memname"> 329 <tr> 330 <td class="memname">float atan2pi </td> 331 <td>(</td> 332 <td class="paramtype">float </td> 333 <td class="paramname"><em>y</em>, </td> 334 </tr> 335 <tr> 336 <td class="paramkey"></td> 337 <td></td> 338 <td class="paramtype">float </td> 339 <td class="paramname"><em>x</em> </td> 340 </tr> 341 <tr> 342 <td></td> 343 <td>)</td> 344 <td></td><td></td> 345 </tr> 346 </table> 347 </div> 348 <div class="memdoc"> 349 <p>Return the inverse tangent of y / x, divided by PI.</p> 350 <p>Supports float, float2, float3, float4. Both arguments must be of the same type.</p> 351 <dl><dt><b>Parameters:</b></dt><dd> 352 <table class="params"> 353 <tr><td class="paramname">y</td><td></td></tr> 354 <tr><td class="paramname">x</td><td></td></tr> 355 </table> 356 </dd> 357 </dl> 358 359 </div> 360 </div> 361 <a class="anchor" id="a83bdf415cc561ff6237a124273d9fb0d"></a><!-- doxytag: member="rs_cl.rsh::atanh" ref="a83bdf415cc561ff6237a124273d9fb0d" args="(float)" --> 362 <div class="memitem"> 363 <div class="memproto"> 364 <table class="memname"> 365 <tr> 366 <td class="memname">float atanh </td> 367 <td>(</td> 368 <td class="paramtype">float </td> 369 <td class="paramname"></td><td>)</td> 370 <td></td> 371 </tr> 372 </table> 373 </div> 374 <div class="memdoc"> 375 <p>Return the inverse hyperbolic tangent.</p> 376 <p>Supports float, float2, float3, float4 </p> 377 378 </div> 379 </div> 380 <a class="anchor" id="a5052e31ce616d35aee25a3a83f6fc117"></a><!-- doxytag: member="rs_cl.rsh::atanpi" ref="a5052e31ce616d35aee25a3a83f6fc117" args="(float v)" --> 381 <div class="memitem"> 382 <div class="memproto"> 383 <table class="memname"> 384 <tr> 385 <td class="memname">float atanpi </td> 386 <td>(</td> 387 <td class="paramtype">float </td> 388 <td class="paramname"><em>v</em></td><td>)</td> 389 <td></td> 390 </tr> 391 </table> 392 </div> 393 <div class="memdoc"> 394 <p>Return the inverse tangent divided by PI.</p> 395 <p>Supports float, float2, float3, float4 </p> 396 397 </div> 398 </div> 399 <a class="anchor" id="ae9d1787b55c2587478a24d96573225df"></a><!-- doxytag: member="rs_cl.rsh::cbrt" ref="ae9d1787b55c2587478a24d96573225df" args="(float)" --> 400 <div class="memitem"> 401 <div class="memproto"> 402 <table class="memname"> 403 <tr> 404 <td class="memname">float cbrt </td> 405 <td>(</td> 406 <td class="paramtype">float </td> 407 <td class="paramname"></td><td>)</td> 408 <td></td> 409 </tr> 410 </table> 411 </div> 412 <div class="memdoc"> 413 <p>Return the cube root.</p> 414 <p>Supports float, float2, float3, float4. </p> 415 416 </div> 417 </div> 418 <a class="anchor" id="aa8fc6daff743a1b635ccbf9af83fe4e4"></a><!-- doxytag: member="rs_cl.rsh::ceil" ref="aa8fc6daff743a1b635ccbf9af83fe4e4" args="(float)" --> 419 <div class="memitem"> 420 <div class="memproto"> 421 <table class="memname"> 422 <tr> 423 <td class="memname">float ceil </td> 424 <td>(</td> 425 <td class="paramtype">float </td> 426 <td class="paramname"></td><td>)</td> 427 <td></td> 428 </tr> 429 </table> 430 </div> 431 <div class="memdoc"> 432 <p>Return the smallest integer not less than a value.</p> 433 <p>Supports float, float2, float3, float4. </p> 434 435 </div> 436 </div> 437 <a class="anchor" id="afae5eac13e35acd0f47d7e3c601e16ed"></a><!-- doxytag: member="rs_cl.rsh::clamp" ref="afae5eac13e35acd0f47d7e3c601e16ed" args="(float amount, float low, float high)" --> 438 <div class="memitem"> 439 <div class="memproto"> 440 <table class="memname"> 441 <tr> 442 <td class="memname">float clamp </td> 443 <td>(</td> 444 <td class="paramtype">float </td> 445 <td class="paramname"><em>amount</em>, </td> 446 </tr> 447 <tr> 448 <td class="paramkey"></td> 449 <td></td> 450 <td class="paramtype">float </td> 451 <td class="paramname"><em>low</em>, </td> 452 </tr> 453 <tr> 454 <td class="paramkey"></td> 455 <td></td> 456 <td class="paramtype">float </td> 457 <td class="paramname"><em>high</em> </td> 458 </tr> 459 <tr> 460 <td></td> 461 <td>)</td> 462 <td></td><td></td> 463 </tr> 464 </table> 465 </div> 466 <div class="memdoc"> 467 <p>Clamp a value to a specified high and low bound.</p> 468 <dl><dt><b>Parameters:</b></dt><dd> 469 <table class="params"> 470 <tr><td class="paramname">amount</td><td>value to be clamped. Supports 1,2,3,4 components </td></tr> 471 <tr><td class="paramname">low</td><td>Lower bound, must be scalar or matching vector. </td></tr> 472 <tr><td class="paramname">high</td><td>High bound, must match type of low </td></tr> 473 </table> 474 </dd> 475 </dl> 476 477 </div> 478 </div> 479 <a class="anchor" id="a8a0f94dce3caa2a50cbf2d9f4bc674ac"></a><!-- doxytag: member="rs_cl.rsh::clz" ref="a8a0f94dce3caa2a50cbf2d9f4bc674ac" args="(uchar v)" --> 480 <div class="memitem"> 481 <div class="memproto"> 482 <table class="memname"> 483 <tr> 484 <td class="memname"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> clz </td> 485 <td>(</td> 486 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td> 487 <td class="paramname"><em>v</em></td><td>)</td> 488 <td></td> 489 </tr> 490 </table> 491 </div> 492 <div class="memdoc"> 493 <p>Return the number of leading 0-bits in a value.</p> 494 <p>Supports 1,2,3,4 components of uchar, char, ushort, short, uint, int. </p> 495 496 </div> 497 </div> 498 <a class="anchor" id="a67421c4b17df15a1c726d912770e5ca4"></a><!-- doxytag: member="rs_cl.rsh::convert_char2" ref="a67421c4b17df15a1c726d912770e5ca4" args="(uchar2 v)" --> 499 <div class="memitem"> 500 <div class="memproto"> 501 <table class="memname"> 502 <tr> 503 <td class="memname"><a class="el" href="rs__types_8rsh.html#ac532b4c1895c8bd4fb75dc370c484351">char2</a> convert_char2 </td> 504 <td>(</td> 505 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td> 506 <td class="paramname"><em>v</em></td><td>)</td> 507 <td></td> 508 </tr> 509 </table> 510 </div> 511 <div class="memdoc"> 512 <p>Convert to char.</p> 513 <p>Supports 2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 514 515 </div> 516 </div> 517 <a class="anchor" id="a1ad62d449c1e3548573c2f9c1a5cb13a"></a><!-- doxytag: member="rs_cl.rsh::convert_float2" ref="a1ad62d449c1e3548573c2f9c1a5cb13a" args="(uchar2 v)" --> 518 <div class="memitem"> 519 <div class="memproto"> 520 <table class="memname"> 521 <tr> 522 <td class="memname"><a class="el" href="rs__types_8rsh.html#a5086d0fcb71f916c936af486ccf0dd41">float2</a> convert_float2 </td> 523 <td>(</td> 524 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td> 525 <td class="paramname"><em>v</em></td><td>)</td> 526 <td></td> 527 </tr> 528 </table> 529 </div> 530 <div class="memdoc"> 531 <p>Convert to float.</p> 532 <p>Supports 2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 533 534 </div> 535 </div> 536 <a class="anchor" id="a9d2e4b8f0f25a7ccaed05248edc21f06"></a><!-- doxytag: member="rs_cl.rsh::convert_int2" ref="a9d2e4b8f0f25a7ccaed05248edc21f06" args="(uchar2 v)" --> 537 <div class="memitem"> 538 <div class="memproto"> 539 <table class="memname"> 540 <tr> 541 <td class="memname"><a class="el" href="rs__types_8rsh.html#a6bc1fa1354fe2145b8f12b4bbfafcf4c">int2</a> convert_int2 </td> 542 <td>(</td> 543 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td> 544 <td class="paramname"><em>v</em></td><td>)</td> 545 <td></td> 546 </tr> 547 </table> 548 </div> 549 <div class="memdoc"> 550 <p>Convert to int.</p> 551 <p>Supports 2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 552 553 </div> 554 </div> 555 <a class="anchor" id="a83e89db1940f3190fbec5bd823a99fc5"></a><!-- doxytag: member="rs_cl.rsh::convert_short2" ref="a83e89db1940f3190fbec5bd823a99fc5" args="(uchar2 v)" --> 556 <div class="memitem"> 557 <div class="memproto"> 558 <table class="memname"> 559 <tr> 560 <td class="memname"><a class="el" href="rs__types_8rsh.html#a303d3ad18aaeacfcfeda2b8580b98796">short2</a> convert_short2 </td> 561 <td>(</td> 562 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td> 563 <td class="paramname"><em>v</em></td><td>)</td> 564 <td></td> 565 </tr> 566 </table> 567 </div> 568 <div class="memdoc"> 569 <p>Convert to short.</p> 570 <p>Supports 2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 571 572 </div> 573 </div> 574 <a class="anchor" id="a833bb5476683ec5692feaf0cd5dcdd80"></a><!-- doxytag: member="rs_cl.rsh::convert_uchar2" ref="a833bb5476683ec5692feaf0cd5dcdd80" args="(uchar2 v)" --> 575 <div class="memitem"> 576 <div class="memproto"> 577 <table class="memname"> 578 <tr> 579 <td class="memname"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> convert_uchar2 </td> 580 <td>(</td> 581 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td> 582 <td class="paramname"><em>v</em></td><td>)</td> 583 <td></td> 584 </tr> 585 </table> 586 </div> 587 <div class="memdoc"> 588 <p>Convert to unsigned char.</p> 589 <p>Supports 2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 590 591 </div> 592 </div> 593 <a class="anchor" id="a01ff256469203ba33ba0f220b54e70d1"></a><!-- doxytag: member="rs_cl.rsh::convert_uint2" ref="a01ff256469203ba33ba0f220b54e70d1" args="(uchar2 v)" --> 594 <div class="memitem"> 595 <div class="memproto"> 596 <table class="memname"> 597 <tr> 598 <td class="memname"><a class="el" href="rs__types_8rsh.html#aaf90cd1f01a121e824fc6e1b927e7683">uint2</a> convert_uint2 </td> 599 <td>(</td> 600 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td> 601 <td class="paramname"><em>v</em></td><td>)</td> 602 <td></td> 603 </tr> 604 </table> 605 </div> 606 <div class="memdoc"> 607 <p>Convert to unsigned int.</p> 608 <p>Supports 2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 609 610 </div> 611 </div> 612 <a class="anchor" id="a6862ea6ddfba8a59796bc681a544fb4f"></a><!-- doxytag: member="rs_cl.rsh::convert_ushort2" ref="a6862ea6ddfba8a59796bc681a544fb4f" args="(uchar2 v)" --> 613 <div class="memitem"> 614 <div class="memproto"> 615 <table class="memname"> 616 <tr> 617 <td class="memname"><a class="el" href="rs__types_8rsh.html#a24a9d78cfc32475e2c6eb1cdec239bf2">ushort2</a> convert_ushort2 </td> 618 <td>(</td> 619 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#aff5eb7cd53a34bb01924bf64485296de">uchar2</a> </td> 620 <td class="paramname"><em>v</em></td><td>)</td> 621 <td></td> 622 </tr> 623 </table> 624 </div> 625 <div class="memdoc"> 626 <p>Convert to unsigned short.</p> 627 <p>Supports 2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 628 629 </div> 630 </div> 631 <a class="anchor" id="a29f2602d95aa7b3950e2b77b3e268f7e"></a><!-- doxytag: member="rs_cl.rsh::copysign" ref="a29f2602d95aa7b3950e2b77b3e268f7e" args="(float x, float y)" --> 632 <div class="memitem"> 633 <div class="memproto"> 634 <table class="memname"> 635 <tr> 636 <td class="memname">float copysign </td> 637 <td>(</td> 638 <td class="paramtype">float </td> 639 <td class="paramname"><em>x</em>, </td> 640 </tr> 641 <tr> 642 <td class="paramkey"></td> 643 <td></td> 644 <td class="paramtype">float </td> 645 <td class="paramname"><em>y</em> </td> 646 </tr> 647 <tr> 648 <td></td> 649 <td>)</td> 650 <td></td><td></td> 651 </tr> 652 </table> 653 </div> 654 <div class="memdoc"> 655 <p>Copy the sign bit from y to x.</p> 656 <p>Supports float, float2, float3, float4. Both arguments must be of the same type.</p> 657 <dl><dt><b>Parameters:</b></dt><dd> 658 <table class="params"> 659 <tr><td class="paramname">x</td><td></td></tr> 660 <tr><td class="paramname">y</td><td></td></tr> 661 </table> 662 </dd> 663 </dl> 664 665 </div> 666 </div> 667 <a class="anchor" id="a8eec7aeb4b0c46b06cbcd1a3ac3e6f05"></a><!-- doxytag: member="rs_cl.rsh::cos" ref="a8eec7aeb4b0c46b06cbcd1a3ac3e6f05" args="(float)" --> 668 <div class="memitem"> 669 <div class="memproto"> 670 <table class="memname"> 671 <tr> 672 <td class="memname">float cos </td> 673 <td>(</td> 674 <td class="paramtype">float </td> 675 <td class="paramname"></td><td>)</td> 676 <td></td> 677 </tr> 678 </table> 679 </div> 680 <div class="memdoc"> 681 <p>Return the cosine.</p> 682 <p>Supports float, float2, float3, float4. </p> 683 684 </div> 685 </div> 686 <a class="anchor" id="ac8d88d83182afd591401eaed101d9670"></a><!-- doxytag: member="rs_cl.rsh::cosh" ref="ac8d88d83182afd591401eaed101d9670" args="(float)" --> 687 <div class="memitem"> 688 <div class="memproto"> 689 <table class="memname"> 690 <tr> 691 <td class="memname">float cosh </td> 692 <td>(</td> 693 <td class="paramtype">float </td> 694 <td class="paramname"></td><td>)</td> 695 <td></td> 696 </tr> 697 </table> 698 </div> 699 <div class="memdoc"> 700 <p>Return the hypebolic cosine.</p> 701 <p>Supports float, float2, float3, float4. </p> 702 703 </div> 704 </div> 705 <a class="anchor" id="a258d2c828fd46eae2867373884d834a9"></a><!-- doxytag: member="rs_cl.rsh::cospi" ref="a258d2c828fd46eae2867373884d834a9" args="(float v)" --> 706 <div class="memitem"> 707 <div class="memproto"> 708 <table class="memname"> 709 <tr> 710 <td class="memname">float cospi </td> 711 <td>(</td> 712 <td class="paramtype">float </td> 713 <td class="paramname"><em>v</em></td><td>)</td> 714 <td></td> 715 </tr> 716 </table> 717 </div> 718 <div class="memdoc"> 719 <p>Return the cosine of the value * PI.</p> 720 <p>Supports float, float2, float3, float4. </p> 721 722 </div> 723 </div> 724 <a class="anchor" id="add745d593bc2b23285bd10e52a204e25"></a><!-- doxytag: member="rs_cl.rsh::cross" ref="add745d593bc2b23285bd10e52a204e25" args="(float3 lhs, float3 rhs)" --> 725 <div class="memitem"> 726 <div class="memproto"> 727 <table class="memname"> 728 <tr> 729 <td class="memname"><a class="el" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> cross </td> 730 <td>(</td> 731 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> </td> 732 <td class="paramname"><em>lhs</em>, </td> 733 </tr> 734 <tr> 735 <td class="paramkey"></td> 736 <td></td> 737 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> </td> 738 <td class="paramname"><em>rhs</em> </td> 739 </tr> 740 <tr> 741 <td></td> 742 <td>)</td> 743 <td></td><td></td> 744 </tr> 745 </table> 746 </div> 747 <div class="memdoc"> 748 <p>Compute the cross product of two vectors.</p> 749 <p>Supports 3,4 components </p> 750 751 </div> 752 </div> 753 <a class="anchor" id="a0276b63d6905fa802032f1490a24515b"></a><!-- doxytag: member="rs_cl.rsh::degrees" ref="a0276b63d6905fa802032f1490a24515b" args="(float radians)" --> 754 <div class="memitem"> 755 <div class="memproto"> 756 <table class="memname"> 757 <tr> 758 <td class="memname">float degrees </td> 759 <td>(</td> 760 <td class="paramtype">float </td> 761 <td class="paramname"><em>radians</em></td><td>)</td> 762 <td></td> 763 </tr> 764 </table> 765 </div> 766 <div class="memdoc"> 767 <p>Convert from radians to degrees.</p> 768 <p>Supports 1,2,3,4 components </p> 769 770 </div> 771 </div> 772 <a class="anchor" id="a412bf215ae838c65079560bbefefaca7"></a><!-- doxytag: member="rs_cl.rsh::distance" ref="a412bf215ae838c65079560bbefefaca7" args="(float lhs, float rhs)" --> 773 <div class="memitem"> 774 <div class="memproto"> 775 <table class="memname"> 776 <tr> 777 <td class="memname">float distance </td> 778 <td>(</td> 779 <td class="paramtype">float </td> 780 <td class="paramname"><em>lhs</em>, </td> 781 </tr> 782 <tr> 783 <td class="paramkey"></td> 784 <td></td> 785 <td class="paramtype">float </td> 786 <td class="paramname"><em>rhs</em> </td> 787 </tr> 788 <tr> 789 <td></td> 790 <td>)</td> 791 <td></td><td></td> 792 </tr> 793 </table> 794 </div> 795 <div class="memdoc"> 796 <p>Compute the distance between two points.</p> 797 <p>Supports 1,2,3,4 components </p> 798 799 </div> 800 </div> 801 <a class="anchor" id="aa26d85eac3067e9769b33b6914b180f2"></a><!-- doxytag: member="rs_cl.rsh::dot" ref="aa26d85eac3067e9769b33b6914b180f2" args="(float lhs, float rhs)" --> 802 <div class="memitem"> 803 <div class="memproto"> 804 <table class="memname"> 805 <tr> 806 <td class="memname">float dot </td> 807 <td>(</td> 808 <td class="paramtype">float </td> 809 <td class="paramname"><em>lhs</em>, </td> 810 </tr> 811 <tr> 812 <td class="paramkey"></td> 813 <td></td> 814 <td class="paramtype">float </td> 815 <td class="paramname"><em>rhs</em> </td> 816 </tr> 817 <tr> 818 <td></td> 819 <td>)</td> 820 <td></td><td></td> 821 </tr> 822 </table> 823 </div> 824 <div class="memdoc"> 825 <p>Compute the dot product of two vectors.</p> 826 <p>Supports 1,2,3,4 components </p> 827 828 </div> 829 </div> 830 <a class="anchor" id="a139f102df651c25c26dd35d549173f57"></a><!-- doxytag: member="rs_cl.rsh::erf" ref="a139f102df651c25c26dd35d549173f57" args="(float)" --> 831 <div class="memitem"> 832 <div class="memproto"> 833 <table class="memname"> 834 <tr> 835 <td class="memname">float erf </td> 836 <td>(</td> 837 <td class="paramtype">float </td> 838 <td class="paramname"></td><td>)</td> 839 <td></td> 840 </tr> 841 </table> 842 </div> 843 <div class="memdoc"> 844 <p>Return the error function.</p> 845 <p>Supports float, float2, float3, float4. </p> 846 847 </div> 848 </div> 849 <a class="anchor" id="a2e24dc8594e758b64c340153f67a533c"></a><!-- doxytag: member="rs_cl.rsh::erfc" ref="a2e24dc8594e758b64c340153f67a533c" args="(float)" --> 850 <div class="memitem"> 851 <div class="memproto"> 852 <table class="memname"> 853 <tr> 854 <td class="memname">float erfc </td> 855 <td>(</td> 856 <td class="paramtype">float </td> 857 <td class="paramname"></td><td>)</td> 858 <td></td> 859 </tr> 860 </table> 861 </div> 862 <div class="memdoc"> 863 <p>Return the complementary error function.</p> 864 <p>Supports float, float2, float3, float4. </p> 865 866 </div> 867 </div> 868 <a class="anchor" id="a6d9aac64c2686961ca8f30e3c34fef36"></a><!-- doxytag: member="rs_cl.rsh::exp" ref="a6d9aac64c2686961ca8f30e3c34fef36" args="(float)" --> 869 <div class="memitem"> 870 <div class="memproto"> 871 <table class="memname"> 872 <tr> 873 <td class="memname">float exp </td> 874 <td>(</td> 875 <td class="paramtype">float </td> 876 <td class="paramname"></td><td>)</td> 877 <td></td> 878 </tr> 879 </table> 880 </div> 881 <div class="memdoc"> 882 <p>Return e ^ value.</p> 883 <p>Supports float, float2, float3, float4. </p> 884 885 </div> 886 </div> 887 <a class="anchor" id="a0225ff40d79f78260293e776c6a77422"></a><!-- doxytag: member="rs_cl.rsh::exp10" ref="a0225ff40d79f78260293e776c6a77422" args="(float v)" --> 888 <div class="memitem"> 889 <div class="memproto"> 890 <table class="memname"> 891 <tr> 892 <td class="memname">float exp10 </td> 893 <td>(</td> 894 <td class="paramtype">float </td> 895 <td class="paramname"><em>v</em></td><td>)</td> 896 <td></td> 897 </tr> 898 </table> 899 </div> 900 <div class="memdoc"> 901 <p>Return 10 ^ value.</p> 902 <p>Supports float, float2, float3, float4. </p> 903 904 </div> 905 </div> 906 <a class="anchor" id="a39bca19ee2b1aa95144e58eb4a1e4f88"></a><!-- doxytag: member="rs_cl.rsh::exp2" ref="a39bca19ee2b1aa95144e58eb4a1e4f88" args="(float)" --> 907 <div class="memitem"> 908 <div class="memproto"> 909 <table class="memname"> 910 <tr> 911 <td class="memname">float exp2 </td> 912 <td>(</td> 913 <td class="paramtype">float </td> 914 <td class="paramname"></td><td>)</td> 915 <td></td> 916 </tr> 917 </table> 918 </div> 919 <div class="memdoc"> 920 <p>Return 2 ^ value.</p> 921 <p>Supports float, float2, float3, float4. </p> 922 923 </div> 924 </div> 925 <a class="anchor" id="a7996044b67be921a5e58e2fe76af66e2"></a><!-- doxytag: member="rs_cl.rsh::expm1" ref="a7996044b67be921a5e58e2fe76af66e2" args="(float)" --> 926 <div class="memitem"> 927 <div class="memproto"> 928 <table class="memname"> 929 <tr> 930 <td class="memname">float expm1 </td> 931 <td>(</td> 932 <td class="paramtype">float </td> 933 <td class="paramname"></td><td>)</td> 934 <td></td> 935 </tr> 936 </table> 937 </div> 938 <div class="memdoc"> 939 <p>Return (e ^ value) - 1.</p> 940 <p>Supports float, float2, float3, float4. </p> 941 942 </div> 943 </div> 944 <a class="anchor" id="ad6e897f1acae252ec0901e3b122992ea"></a><!-- doxytag: member="rs_cl.rsh::fabs" ref="ad6e897f1acae252ec0901e3b122992ea" args="(float)" --> 945 <div class="memitem"> 946 <div class="memproto"> 947 <table class="memname"> 948 <tr> 949 <td class="memname">float fabs </td> 950 <td>(</td> 951 <td class="paramtype">float </td> 952 <td class="paramname"></td><td>)</td> 953 <td></td> 954 </tr> 955 </table> 956 </div> 957 <div class="memdoc"> 958 <p>Return the absolute value of a value.</p> 959 <p>Supports float, float2, float3, float4. </p> 960 961 </div> 962 </div> 963 <a class="anchor" id="a4fcbdb9099e7d653a951cb344ba3c3c9"></a><!-- doxytag: member="rs_cl.rsh::fast_distance" ref="a4fcbdb9099e7d653a951cb344ba3c3c9" args="(float lhs, float rhs)" --> 964 <div class="memitem"> 965 <div class="memproto"> 966 <table class="memname"> 967 <tr> 968 <td class="memname">float fast_distance </td> 969 <td>(</td> 970 <td class="paramtype">float </td> 971 <td class="paramname"><em>lhs</em>, </td> 972 </tr> 973 <tr> 974 <td class="paramkey"></td> 975 <td></td> 976 <td class="paramtype">float </td> 977 <td class="paramname"><em>rhs</em> </td> 978 </tr> 979 <tr> 980 <td></td> 981 <td>)</td> 982 <td></td><td></td> 983 </tr> 984 </table> 985 </div> 986 <div class="memdoc"> 987 <p>Compute the approximate distance between two points.</p> 988 <p>Supports 1,2,3,4 components </p> 989 990 </div> 991 </div> 992 <a class="anchor" id="a7c8f2f987044a360b5f616a80a74a4d5"></a><!-- doxytag: member="rs_cl.rsh::fast_length" ref="a7c8f2f987044a360b5f616a80a74a4d5" args="(float v)" --> 993 <div class="memitem"> 994 <div class="memproto"> 995 <table class="memname"> 996 <tr> 997 <td class="memname">float fast_length </td> 998 <td>(</td> 999 <td class="paramtype">float </td> 1000 <td class="paramname"><em>v</em></td><td>)</td> 1001 <td></td> 1002 </tr> 1003 </table> 1004 </div> 1005 <div class="memdoc"> 1006 <p>Compute the approximate length of a vector.</p> 1007 <p>Supports 1,2,3,4 components </p> 1008 1009 </div> 1010 </div> 1011 <a class="anchor" id="a3878bee2879351f518be68e015d76a35"></a><!-- doxytag: member="rs_cl.rsh::fast_normalize" ref="a3878bee2879351f518be68e015d76a35" args="(float v)" --> 1012 <div class="memitem"> 1013 <div class="memproto"> 1014 <table class="memname"> 1015 <tr> 1016 <td class="memname">float fast_normalize </td> 1017 <td>(</td> 1018 <td class="paramtype">float </td> 1019 <td class="paramname"><em>v</em></td><td>)</td> 1020 <td></td> 1021 </tr> 1022 </table> 1023 </div> 1024 <div class="memdoc"> 1025 <p>Approximately normalize a vector.</p> 1026 <p>Supports 1,2,3,4 components </p> 1027 1028 </div> 1029 </div> 1030 <a class="anchor" id="ae7a7bac0f4e244594078f87b42c8716a"></a><!-- doxytag: member="rs_cl.rsh::fdim" ref="ae7a7bac0f4e244594078f87b42c8716a" args="(float, float)" --> 1031 <div class="memitem"> 1032 <div class="memproto"> 1033 <table class="memname"> 1034 <tr> 1035 <td class="memname">float fdim </td> 1036 <td>(</td> 1037 <td class="paramtype">float </td> 1038 <td class="paramname">, </td> 1039 </tr> 1040 <tr> 1041 <td class="paramkey"></td> 1042 <td></td> 1043 <td class="paramtype">float </td> 1044 <td class="paramname"> </td> 1045 </tr> 1046 <tr> 1047 <td></td> 1048 <td>)</td> 1049 <td></td><td></td> 1050 </tr> 1051 </table> 1052 </div> 1053 <div class="memdoc"> 1054 <p>Return the positive difference between two values.</p> 1055 <p>Supports float, float2, float3, float4. Both arguments must be of the same type. </p> 1056 1057 </div> 1058 </div> 1059 <a class="anchor" id="aae2da38a7246378dff8014ec407a30c3"></a><!-- doxytag: member="rs_cl.rsh::floor" ref="aae2da38a7246378dff8014ec407a30c3" args="(float)" --> 1060 <div class="memitem"> 1061 <div class="memproto"> 1062 <table class="memname"> 1063 <tr> 1064 <td class="memname">float floor </td> 1065 <td>(</td> 1066 <td class="paramtype">float </td> 1067 <td class="paramname"></td><td>)</td> 1068 <td></td> 1069 </tr> 1070 </table> 1071 </div> 1072 <div class="memdoc"> 1073 <p>Return the smallest integer not greater than a value.</p> 1074 <p>Supports float, float2, float3, float4. </p> 1075 1076 </div> 1077 </div> 1078 <a class="anchor" id="ac42909daec463fe449743e70baf8360d"></a><!-- doxytag: member="rs_cl.rsh::fma" ref="ac42909daec463fe449743e70baf8360d" args="(float a, float b, float c)" --> 1079 <div class="memitem"> 1080 <div class="memproto"> 1081 <table class="memname"> 1082 <tr> 1083 <td class="memname">float fma </td> 1084 <td>(</td> 1085 <td class="paramtype">float </td> 1086 <td class="paramname"><em>a</em>, </td> 1087 </tr> 1088 <tr> 1089 <td class="paramkey"></td> 1090 <td></td> 1091 <td class="paramtype">float </td> 1092 <td class="paramname"><em>b</em>, </td> 1093 </tr> 1094 <tr> 1095 <td class="paramkey"></td> 1096 <td></td> 1097 <td class="paramtype">float </td> 1098 <td class="paramname"><em>c</em> </td> 1099 </tr> 1100 <tr> 1101 <td></td> 1102 <td>)</td> 1103 <td></td><td></td> 1104 </tr> 1105 </table> 1106 </div> 1107 <div class="memdoc"> 1108 <p>Return a*b + c.</p> 1109 <p>Supports float, float2, float3, float4. </p> 1110 1111 </div> 1112 </div> 1113 <a class="anchor" id="a60f2072d8a746e7fe05cd46dea0fefcc"></a><!-- doxytag: member="rs_cl.rsh::fmax" ref="a60f2072d8a746e7fe05cd46dea0fefcc" args="(float x, float y)" --> 1114 <div class="memitem"> 1115 <div class="memproto"> 1116 <table class="memname"> 1117 <tr> 1118 <td class="memname">float fmax </td> 1119 <td>(</td> 1120 <td class="paramtype">float </td> 1121 <td class="paramname"><em>x</em>, </td> 1122 </tr> 1123 <tr> 1124 <td class="paramkey"></td> 1125 <td></td> 1126 <td class="paramtype">float </td> 1127 <td class="paramname"><em>y</em> </td> 1128 </tr> 1129 <tr> 1130 <td></td> 1131 <td>)</td> 1132 <td></td><td></td> 1133 </tr> 1134 </table> 1135 </div> 1136 <div class="memdoc"> 1137 <p>Return (x < y ? y : x)</p> 1138 <p>Supports float, float2, float3, float4. </p> 1139 <dl><dt><b>Parameters:</b></dt><dd> 1140 <table class="params"> 1141 <tr><td class="paramname">x,:</td><td>may be float, float2, float3, float4 </td></tr> 1142 <tr><td class="paramname">y,:</td><td>may be float or vector. If vector must match type of x. </td></tr> 1143 </table> 1144 </dd> 1145 </dl> 1146 1147 </div> 1148 </div> 1149 <a class="anchor" id="a1fd9d57c6c992866bf5161be2cf4c447"></a><!-- doxytag: member="rs_cl.rsh::fmin" ref="a1fd9d57c6c992866bf5161be2cf4c447" args="(float x, float y)" --> 1150 <div class="memitem"> 1151 <div class="memproto"> 1152 <table class="memname"> 1153 <tr> 1154 <td class="memname">float fmin </td> 1155 <td>(</td> 1156 <td class="paramtype">float </td> 1157 <td class="paramname"><em>x</em>, </td> 1158 </tr> 1159 <tr> 1160 <td class="paramkey"></td> 1161 <td></td> 1162 <td class="paramtype">float </td> 1163 <td class="paramname"><em>y</em> </td> 1164 </tr> 1165 <tr> 1166 <td></td> 1167 <td>)</td> 1168 <td></td><td></td> 1169 </tr> 1170 </table> 1171 </div> 1172 <div class="memdoc"> 1173 <p>Return (x > y ? y : x)</p> 1174 <dl><dt><b>Parameters:</b></dt><dd> 1175 <table class="params"> 1176 <tr><td class="paramname">x,:</td><td>may be float, float2, float3, float4 </td></tr> 1177 <tr><td class="paramname">y,:</td><td>may be float or vector. If vector must match type of x. </td></tr> 1178 </table> 1179 </dd> 1180 </dl> 1181 1182 </div> 1183 </div> 1184 <a class="anchor" id="a31d5e179730ae44e1dbc74c1535f392e"></a><!-- doxytag: member="rs_cl.rsh::fmod" ref="a31d5e179730ae44e1dbc74c1535f392e" args="(float x, float y)" --> 1185 <div class="memitem"> 1186 <div class="memproto"> 1187 <table class="memname"> 1188 <tr> 1189 <td class="memname">float fmod </td> 1190 <td>(</td> 1191 <td class="paramtype">float </td> 1192 <td class="paramname"><em>x</em>, </td> 1193 </tr> 1194 <tr> 1195 <td class="paramkey"></td> 1196 <td></td> 1197 <td class="paramtype">float </td> 1198 <td class="paramname"><em>y</em> </td> 1199 </tr> 1200 <tr> 1201 <td></td> 1202 <td>)</td> 1203 <td></td><td></td> 1204 </tr> 1205 </table> 1206 </div> 1207 <div class="memdoc"> 1208 <p>Return the remainder from x / y</p> 1209 <p>Supports float, float2, float3, float4. </p> 1210 1211 </div> 1212 </div> 1213 <a class="anchor" id="a9374786a1bbe3d2dd886cfad642bfec6"></a><!-- doxytag: member="rs_cl.rsh::fract" ref="a9374786a1bbe3d2dd886cfad642bfec6" args="(float v, float *iptr)" --> 1214 <div class="memitem"> 1215 <div class="memproto"> 1216 <table class="memname"> 1217 <tr> 1218 <td class="memname">float fract </td> 1219 <td>(</td> 1220 <td class="paramtype">float </td> 1221 <td class="paramname"><em>v</em>, </td> 1222 </tr> 1223 <tr> 1224 <td class="paramkey"></td> 1225 <td></td> 1226 <td class="paramtype">float * </td> 1227 <td class="paramname"><em>iptr</em> </td> 1228 </tr> 1229 <tr> 1230 <td></td> 1231 <td>)</td> 1232 <td></td><td></td> 1233 </tr> 1234 </table> 1235 </div> 1236 <div class="memdoc"> 1237 <p>Return fractional part of v</p> 1238 <dl><dt><b>Parameters:</b></dt><dd> 1239 <table class="params"> 1240 <tr><td class="paramname">iptr</td><td>iptr[0] will be set to the floor of the input value. Supports float, float2, float3, float4. </td></tr> 1241 </table> 1242 </dd> 1243 </dl> 1244 1245 </div> 1246 </div> 1247 <a class="anchor" id="a84b546baf72a871a5ba688d434d6ce2b"></a><!-- doxytag: member="rs_cl.rsh::fract" ref="a84b546baf72a871a5ba688d434d6ce2b" args="(float v)" --> 1248 <div class="memitem"> 1249 <div class="memproto"> 1250 <table class="memname"> 1251 <tr> 1252 <td class="memname">static <a class="el" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> fract </td> 1253 <td>(</td> 1254 <td class="paramtype">float </td> 1255 <td class="paramname"><em>v</em></td><td>)</td> 1256 <td><code> [inline, static]</code></td> 1257 </tr> 1258 </table> 1259 </div> 1260 <div class="memdoc"> 1261 <p>Return fractional part of v</p> 1262 <p>Supports float, float2, float3, float4. </p> 1263 1264 <p>Definition at line <a class="el" href="rs__cl_8rsh_source.html#l00485">485</a> of file <a class="el" href="rs__cl_8rsh_source.html">rs_cl.rsh</a>.</p> 1265 1266 </div> 1267 </div> 1268 <a class="anchor" id="a778635fffed3cee8ab0800482ba53a30"></a><!-- doxytag: member="rs_cl.rsh::frexp" ref="a778635fffed3cee8ab0800482ba53a30" args="(float v, int *iptr)" --> 1269 <div class="memitem"> 1270 <div class="memproto"> 1271 <table class="memname"> 1272 <tr> 1273 <td class="memname">float frexp </td> 1274 <td>(</td> 1275 <td class="paramtype">float </td> 1276 <td class="paramname"><em>v</em>, </td> 1277 </tr> 1278 <tr> 1279 <td class="paramkey"></td> 1280 <td></td> 1281 <td class="paramtype">int * </td> 1282 <td class="paramname"><em>iptr</em> </td> 1283 </tr> 1284 <tr> 1285 <td></td> 1286 <td>)</td> 1287 <td></td><td></td> 1288 </tr> 1289 </table> 1290 </div> 1291 <div class="memdoc"> 1292 <p>Return the mantissa and place the exponent into iptr[0]</p> 1293 <dl><dt><b>Parameters:</b></dt><dd> 1294 <table class="params"> 1295 <tr><td class="paramname">v</td><td>Supports float, float2, float3, float4. </td></tr> 1296 <tr><td class="paramname">iptr</td><td>Must have the same vector size as v. </td></tr> 1297 </table> 1298 </dd> 1299 </dl> 1300 1301 </div> 1302 </div> 1303 <a class="anchor" id="a49050a8e32c95f60df4eaba9d7dfdca6"></a><!-- doxytag: member="rs_cl.rsh::half_recip" ref="a49050a8e32c95f60df4eaba9d7dfdca6" args="(float)" --> 1304 <div class="memitem"> 1305 <div class="memproto"> 1306 <table class="memname"> 1307 <tr> 1308 <td class="memname">float half_recip </td> 1309 <td>(</td> 1310 <td class="paramtype">float </td> 1311 <td class="paramname"></td><td>)</td> 1312 <td></td> 1313 </tr> 1314 </table> 1315 </div> 1316 <div class="memdoc"> 1317 <p>Return the approximate reciprocal of a value.</p> 1318 <p>Supports 1,2,3,4 components </p> 1319 1320 </div> 1321 </div> 1322 <a class="anchor" id="a0925ceb22d33dcbb45914350ffa2edea"></a><!-- doxytag: member="rs_cl.rsh::half_rsqrt" ref="a0925ceb22d33dcbb45914350ffa2edea" args="(float v)" --> 1323 <div class="memitem"> 1324 <div class="memproto"> 1325 <table class="memname"> 1326 <tr> 1327 <td class="memname">float half_rsqrt </td> 1328 <td>(</td> 1329 <td class="paramtype">float </td> 1330 <td class="paramname"><em>v</em></td><td>)</td> 1331 <td></td> 1332 </tr> 1333 </table> 1334 </div> 1335 <div class="memdoc"> 1336 <p>Return the approximate value of (1 / sqrt(value)).</p> 1337 <p>Supports 1,2,3,4 components </p> 1338 1339 </div> 1340 </div> 1341 <a class="anchor" id="a26e2c17b20ee4c98b78c365d390e4fb8"></a><!-- doxytag: member="rs_cl.rsh::half_sqrt" ref="a26e2c17b20ee4c98b78c365d390e4fb8" args="(float)" --> 1342 <div class="memitem"> 1343 <div class="memproto"> 1344 <table class="memname"> 1345 <tr> 1346 <td class="memname">float half_sqrt </td> 1347 <td>(</td> 1348 <td class="paramtype">float </td> 1349 <td class="paramname"></td><td>)</td> 1350 <td></td> 1351 </tr> 1352 </table> 1353 </div> 1354 <div class="memdoc"> 1355 <p>Return the approximate square root of a value.</p> 1356 <p>Supports 1,2,3,4 components </p> 1357 1358 </div> 1359 </div> 1360 <a class="anchor" id="a147f38d6e41f45de9b5e7c6f3dcac010"></a><!-- doxytag: member="rs_cl.rsh::hypot" ref="a147f38d6e41f45de9b5e7c6f3dcac010" args="(float x, float y)" --> 1361 <div class="memitem"> 1362 <div class="memproto"> 1363 <table class="memname"> 1364 <tr> 1365 <td class="memname">float hypot </td> 1366 <td>(</td> 1367 <td class="paramtype">float </td> 1368 <td class="paramname"><em>x</em>, </td> 1369 </tr> 1370 <tr> 1371 <td class="paramkey"></td> 1372 <td></td> 1373 <td class="paramtype">float </td> 1374 <td class="paramname"><em>y</em> </td> 1375 </tr> 1376 <tr> 1377 <td></td> 1378 <td>)</td> 1379 <td></td><td></td> 1380 </tr> 1381 </table> 1382 </div> 1383 <div class="memdoc"> 1384 <p>Return sqrt(x*x + y*y)</p> 1385 <p>Supports float, float2, float3, float4. </p> 1386 1387 </div> 1388 </div> 1389 <a class="anchor" id="aad9a8beba52acb77b1efeba432e6cc2c"></a><!-- doxytag: member="rs_cl.rsh::ilogb" ref="aad9a8beba52acb77b1efeba432e6cc2c" args="(float)" --> 1390 <div class="memitem"> 1391 <div class="memproto"> 1392 <table class="memname"> 1393 <tr> 1394 <td class="memname">int ilogb </td> 1395 <td>(</td> 1396 <td class="paramtype">float </td> 1397 <td class="paramname"></td><td>)</td> 1398 <td></td> 1399 </tr> 1400 </table> 1401 </div> 1402 <div class="memdoc"> 1403 <p>Return the integer exponent of a value</p> 1404 <p>Supports 1,2,3,4 components </p> 1405 1406 </div> 1407 </div> 1408 <a class="anchor" id="a013bc1dcda984cbc608e123ed38491e6"></a><!-- doxytag: member="rs_cl.rsh::ldexp" ref="a013bc1dcda984cbc608e123ed38491e6" args="(float x, int y)" --> 1409 <div class="memitem"> 1410 <div class="memproto"> 1411 <table class="memname"> 1412 <tr> 1413 <td class="memname">float ldexp </td> 1414 <td>(</td> 1415 <td class="paramtype">float </td> 1416 <td class="paramname"><em>x</em>, </td> 1417 </tr> 1418 <tr> 1419 <td class="paramkey"></td> 1420 <td></td> 1421 <td class="paramtype">int </td> 1422 <td class="paramname"><em>y</em> </td> 1423 </tr> 1424 <tr> 1425 <td></td> 1426 <td>)</td> 1427 <td></td><td></td> 1428 </tr> 1429 </table> 1430 </div> 1431 <div class="memdoc"> 1432 <p>Return (x * 2^y)</p> 1433 <dl><dt><b>Parameters:</b></dt><dd> 1434 <table class="params"> 1435 <tr><td class="paramname">x</td><td>Supports 1,2,3,4 components </td></tr> 1436 <tr><td class="paramname">y</td><td>Supports single component or matching vector. </td></tr> 1437 </table> 1438 </dd> 1439 </dl> 1440 1441 </div> 1442 </div> 1443 <a class="anchor" id="a902d4d2fab31ba8f9631b1f681e99baa"></a><!-- doxytag: member="rs_cl.rsh::length" ref="a902d4d2fab31ba8f9631b1f681e99baa" args="(float v)" --> 1444 <div class="memitem"> 1445 <div class="memproto"> 1446 <table class="memname"> 1447 <tr> 1448 <td class="memname">float length </td> 1449 <td>(</td> 1450 <td class="paramtype">float </td> 1451 <td class="paramname"><em>v</em></td><td>)</td> 1452 <td></td> 1453 </tr> 1454 </table> 1455 </div> 1456 <div class="memdoc"> 1457 <p>Compute the length of a vector.</p> 1458 <p>Supports 1,2,3,4 components </p> 1459 1460 </div> 1461 </div> 1462 <a class="anchor" id="a3ff36f9b21927d6b4b58616e48fddcb4"></a><!-- doxytag: member="rs_cl.rsh::lgamma" ref="a3ff36f9b21927d6b4b58616e48fddcb4" args="(float)" --> 1463 <div class="memitem"> 1464 <div class="memproto"> 1465 <table class="memname"> 1466 <tr> 1467 <td class="memname">float lgamma </td> 1468 <td>(</td> 1469 <td class="paramtype">float </td> 1470 <td class="paramname"></td><td>)</td> 1471 <td></td> 1472 </tr> 1473 </table> 1474 </div> 1475 <div class="memdoc"> 1476 <p>Return the log gamma</p> 1477 <p>Supports 1,2,3,4 components </p> 1478 1479 </div> 1480 </div> 1481 <a class="anchor" id="a735f4e14e33c50348ef41220f9210bcc"></a><!-- doxytag: member="rs_cl.rsh::lgamma" ref="a735f4e14e33c50348ef41220f9210bcc" args="(float x, int *y)" --> 1482 <div class="memitem"> 1483 <div class="memproto"> 1484 <table class="memname"> 1485 <tr> 1486 <td class="memname">float lgamma </td> 1487 <td>(</td> 1488 <td class="paramtype">float </td> 1489 <td class="paramname"><em>x</em>, </td> 1490 </tr> 1491 <tr> 1492 <td class="paramkey"></td> 1493 <td></td> 1494 <td class="paramtype">int * </td> 1495 <td class="paramname"><em>y</em> </td> 1496 </tr> 1497 <tr> 1498 <td></td> 1499 <td>)</td> 1500 <td></td><td></td> 1501 </tr> 1502 </table> 1503 </div> 1504 <div class="memdoc"> 1505 <p>Return the log gamma and sign</p> 1506 <dl><dt><b>Parameters:</b></dt><dd> 1507 <table class="params"> 1508 <tr><td class="paramname">x</td><td>Supports 1,2,3,4 components </td></tr> 1509 <tr><td class="paramname">y</td><td>Supports matching vector. </td></tr> 1510 </table> 1511 </dd> 1512 </dl> 1513 1514 </div> 1515 </div> 1516 <a class="anchor" id="a3ff85f5f4b206ecf9ec9d128d7d18a08"></a><!-- doxytag: member="rs_cl.rsh::log" ref="a3ff85f5f4b206ecf9ec9d128d7d18a08" args="(float)" --> 1517 <div class="memitem"> 1518 <div class="memproto"> 1519 <table class="memname"> 1520 <tr> 1521 <td class="memname">float log </td> 1522 <td>(</td> 1523 <td class="paramtype">float </td> 1524 <td class="paramname"></td><td>)</td> 1525 <td></td> 1526 </tr> 1527 </table> 1528 </div> 1529 <div class="memdoc"> 1530 <p>Return the natural logarithm</p> 1531 <p>Supports 1,2,3,4 components </p> 1532 1533 </div> 1534 </div> 1535 <a class="anchor" id="af5c1bdba2a13aa2e2b0722287f6a919f"></a><!-- doxytag: member="rs_cl.rsh::log10" ref="af5c1bdba2a13aa2e2b0722287f6a919f" args="(float)" --> 1536 <div class="memitem"> 1537 <div class="memproto"> 1538 <table class="memname"> 1539 <tr> 1540 <td class="memname">float log10 </td> 1541 <td>(</td> 1542 <td class="paramtype">float </td> 1543 <td class="paramname"></td><td>)</td> 1544 <td></td> 1545 </tr> 1546 </table> 1547 </div> 1548 <div class="memdoc"> 1549 <p>Return the base 10 logarithm</p> 1550 <p>Supports 1,2,3,4 components </p> 1551 1552 </div> 1553 </div> 1554 <a class="anchor" id="ae10541ede49062ef7f977712c4878c1f"></a><!-- doxytag: member="rs_cl.rsh::log1p" ref="ae10541ede49062ef7f977712c4878c1f" args="(float v)" --> 1555 <div class="memitem"> 1556 <div class="memproto"> 1557 <table class="memname"> 1558 <tr> 1559 <td class="memname">float log1p </td> 1560 <td>(</td> 1561 <td class="paramtype">float </td> 1562 <td class="paramname"><em>v</em></td><td>)</td> 1563 <td></td> 1564 </tr> 1565 </table> 1566 </div> 1567 <div class="memdoc"> 1568 <p>Return the natural logarithm of (v + 1.0f)</p> 1569 <p>Supports 1,2,3,4 components </p> 1570 1571 </div> 1572 </div> 1573 <a class="anchor" id="aab1c4f06daf6f2a50fd73f0c28929213"></a><!-- doxytag: member="rs_cl.rsh::log2" ref="aab1c4f06daf6f2a50fd73f0c28929213" args="(float v)" --> 1574 <div class="memitem"> 1575 <div class="memproto"> 1576 <table class="memname"> 1577 <tr> 1578 <td class="memname">float log2 </td> 1579 <td>(</td> 1580 <td class="paramtype">float </td> 1581 <td class="paramname"><em>v</em></td><td>)</td> 1582 <td></td> 1583 </tr> 1584 </table> 1585 </div> 1586 <div class="memdoc"> 1587 <p>Return the base 2 logarithm</p> 1588 <p>Supports 1,2,3,4 components </p> 1589 1590 </div> 1591 </div> 1592 <a class="anchor" id="a28742d6ce2f20a61f16ecc08ed499871"></a><!-- doxytag: member="rs_cl.rsh::logb" ref="a28742d6ce2f20a61f16ecc08ed499871" args="(float)" --> 1593 <div class="memitem"> 1594 <div class="memproto"> 1595 <table class="memname"> 1596 <tr> 1597 <td class="memname">float logb </td> 1598 <td>(</td> 1599 <td class="paramtype">float </td> 1600 <td class="paramname"></td><td>)</td> 1601 <td></td> 1602 </tr> 1603 </table> 1604 </div> 1605 <div class="memdoc"> 1606 <p>Compute the exponent of the value.</p> 1607 <p>Supports 1,2,3,4 components </p> 1608 1609 </div> 1610 </div> 1611 <a class="anchor" id="a4f9086698f1eb466ba2dccf7e331cdc3"></a><!-- doxytag: member="rs_cl.rsh::mad" ref="a4f9086698f1eb466ba2dccf7e331cdc3" args="(float a, float b, float c)" --> 1612 <div class="memitem"> 1613 <div class="memproto"> 1614 <table class="memname"> 1615 <tr> 1616 <td class="memname">float mad </td> 1617 <td>(</td> 1618 <td class="paramtype">float </td> 1619 <td class="paramname"><em>a</em>, </td> 1620 </tr> 1621 <tr> 1622 <td class="paramkey"></td> 1623 <td></td> 1624 <td class="paramtype">float </td> 1625 <td class="paramname"><em>b</em>, </td> 1626 </tr> 1627 <tr> 1628 <td class="paramkey"></td> 1629 <td></td> 1630 <td class="paramtype">float </td> 1631 <td class="paramname"><em>c</em> </td> 1632 </tr> 1633 <tr> 1634 <td></td> 1635 <td>)</td> 1636 <td></td><td></td> 1637 </tr> 1638 </table> 1639 </div> 1640 <div class="memdoc"> 1641 <p>Compute (a * b) + c</p> 1642 <p>Supports 1,2,3,4 components </p> 1643 1644 </div> 1645 </div> 1646 <a class="anchor" id="a616bf7a90d8d3c73a48d2c395d9dc4ea"></a><!-- doxytag: member="rs_cl.rsh::max" ref="a616bf7a90d8d3c73a48d2c395d9dc4ea" args="(uchar v1, uchar v2)" --> 1647 <div class="memitem"> 1648 <div class="memproto"> 1649 <table class="memname"> 1650 <tr> 1651 <td class="memname"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> max </td> 1652 <td>(</td> 1653 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td> 1654 <td class="paramname"><em>v1</em>, </td> 1655 </tr> 1656 <tr> 1657 <td class="paramkey"></td> 1658 <td></td> 1659 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td> 1660 <td class="paramname"><em>v2</em> </td> 1661 </tr> 1662 <tr> 1663 <td></td> 1664 <td>)</td> 1665 <td></td><td></td> 1666 </tr> 1667 </table> 1668 </div> 1669 <div class="memdoc"> 1670 <p>Return the maximum of two values.</p> 1671 <p>Supports 1,2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 1672 1673 </div> 1674 </div> 1675 <a class="anchor" id="a5f61ca44b3ad4b11365b0c4137a22658"></a><!-- doxytag: member="rs_cl.rsh::min" ref="a5f61ca44b3ad4b11365b0c4137a22658" args="(uchar v1, uchar v2)" --> 1676 <div class="memitem"> 1677 <div class="memproto"> 1678 <table class="memname"> 1679 <tr> 1680 <td class="memname"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> min </td> 1681 <td>(</td> 1682 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td> 1683 <td class="paramname"><em>v1</em>, </td> 1684 </tr> 1685 <tr> 1686 <td class="paramkey"></td> 1687 <td></td> 1688 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a27c902d5ca78afa82d5ed75554d5cedc">uchar</a> </td> 1689 <td class="paramname"><em>v2</em> </td> 1690 </tr> 1691 <tr> 1692 <td></td> 1693 <td>)</td> 1694 <td></td><td></td> 1695 </tr> 1696 </table> 1697 </div> 1698 <div class="memdoc"> 1699 <p>Return the minimum of two values.</p> 1700 <p>Supports 1,2,3,4 components of uchar, char, ushort, short, uint, int, float. </p> 1701 1702 </div> 1703 </div> 1704 <a class="anchor" id="a254612a612ff7539b01a1478e03d8697"></a><!-- doxytag: member="rs_cl.rsh::mix" ref="a254612a612ff7539b01a1478e03d8697" args="(float start, float stop, float amount)" --> 1705 <div class="memitem"> 1706 <div class="memproto"> 1707 <table class="memname"> 1708 <tr> 1709 <td class="memname">float mix </td> 1710 <td>(</td> 1711 <td class="paramtype">float </td> 1712 <td class="paramname"><em>start</em>, </td> 1713 </tr> 1714 <tr> 1715 <td class="paramkey"></td> 1716 <td></td> 1717 <td class="paramtype">float </td> 1718 <td class="paramname"><em>stop</em>, </td> 1719 </tr> 1720 <tr> 1721 <td class="paramkey"></td> 1722 <td></td> 1723 <td class="paramtype">float </td> 1724 <td class="paramname"><em>amount</em> </td> 1725 </tr> 1726 <tr> 1727 <td></td> 1728 <td>)</td> 1729 <td></td><td></td> 1730 </tr> 1731 </table> 1732 </div> 1733 <div class="memdoc"> 1734 <p>return start + ((stop - start) * amount);</p> 1735 <p>Supports 1,2,3,4 components </p> 1736 1737 </div> 1738 </div> 1739 <a class="anchor" id="a841633bcdcaeb6a514d9c6460f0adf2d"></a><!-- doxytag: member="rs_cl.rsh::modf" ref="a841633bcdcaeb6a514d9c6460f0adf2d" args="(float x, float *iret)" --> 1740 <div class="memitem"> 1741 <div class="memproto"> 1742 <table class="memname"> 1743 <tr> 1744 <td class="memname">float modf </td> 1745 <td>(</td> 1746 <td class="paramtype">float </td> 1747 <td class="paramname"><em>x</em>, </td> 1748 </tr> 1749 <tr> 1750 <td class="paramkey"></td> 1751 <td></td> 1752 <td class="paramtype">float * </td> 1753 <td class="paramname"><em>iret</em> </td> 1754 </tr> 1755 <tr> 1756 <td></td> 1757 <td>)</td> 1758 <td></td><td></td> 1759 </tr> 1760 </table> 1761 </div> 1762 <div class="memdoc"> 1763 <p>Return the integral and fractional components of a number. Supports 1,2,3,4 components</p> 1764 <dl><dt><b>Parameters:</b></dt><dd> 1765 <table class="params"> 1766 <tr><td class="paramname">x</td><td>Source value </td></tr> 1767 <tr><td class="paramname">iret</td><td>iret[0] will be set to the integral portion of the number. </td></tr> 1768 </table> 1769 </dd> 1770 </dl> 1771 <dl class="return"><dt><b>Returns:</b></dt><dd>The floating point portion of the value. </dd></dl> 1772 1773 </div> 1774 </div> 1775 <a class="anchor" id="a45d8176823a05b891313f3d96decf491"></a><!-- doxytag: member="rs_cl.rsh::native_exp" ref="a45d8176823a05b891313f3d96decf491" args="(float v)" --> 1776 <div class="memitem"> 1777 <div class="memproto"> 1778 <table class="memname"> 1779 <tr> 1780 <td class="memname">float native_exp </td> 1781 <td>(</td> 1782 <td class="paramtype">float </td> 1783 <td class="paramname"><em>v</em></td><td>)</td> 1784 <td></td> 1785 </tr> 1786 </table> 1787 </div> 1788 <div class="memdoc"> 1789 <p>Fast approximate exp valid for inputs -86.f to 86.f Max 8192 ulps of error</p> 1790 <p>Supports 1,2,3,4 components </p> 1791 1792 </div> 1793 </div> 1794 <a class="anchor" id="a601ee3d2bf769f1cdc39a886f7a6c986"></a><!-- doxytag: member="rs_cl.rsh::native_exp10" ref="a601ee3d2bf769f1cdc39a886f7a6c986" args="(float v)" --> 1795 <div class="memitem"> 1796 <div class="memproto"> 1797 <table class="memname"> 1798 <tr> 1799 <td class="memname">float native_exp10 </td> 1800 <td>(</td> 1801 <td class="paramtype">float </td> 1802 <td class="paramname"><em>v</em></td><td>)</td> 1803 <td></td> 1804 </tr> 1805 </table> 1806 </div> 1807 <div class="memdoc"> 1808 <p>Fast approximate exp10 valid for inputs -37.f to 37.f Max 8192 ulps of error</p> 1809 <p>Supports 1,2,3,4 components </p> 1810 1811 </div> 1812 </div> 1813 <a class="anchor" id="ab354691ecd844549b27ef9202e17f7ac"></a><!-- doxytag: member="rs_cl.rsh::native_exp2" ref="ab354691ecd844549b27ef9202e17f7ac" args="(float v)" --> 1814 <div class="memitem"> 1815 <div class="memproto"> 1816 <table class="memname"> 1817 <tr> 1818 <td class="memname">float native_exp2 </td> 1819 <td>(</td> 1820 <td class="paramtype">float </td> 1821 <td class="paramname"><em>v</em></td><td>)</td> 1822 <td></td> 1823 </tr> 1824 </table> 1825 </div> 1826 <div class="memdoc"> 1827 <p>Fast approximate exp2 valid for inputs -125.f to 125.f Max 8192 ulps of error</p> 1828 <p>Supports 1,2,3,4 components </p> 1829 1830 </div> 1831 </div> 1832 <a class="anchor" id="adb11df05fb9985595af0a7bd882bdeac"></a><!-- doxytag: member="rs_cl.rsh::nextafter" ref="adb11df05fb9985595af0a7bd882bdeac" args="(float x, float y)" --> 1833 <div class="memitem"> 1834 <div class="memproto"> 1835 <table class="memname"> 1836 <tr> 1837 <td class="memname">float nextafter </td> 1838 <td>(</td> 1839 <td class="paramtype">float </td> 1840 <td class="paramname"><em>x</em>, </td> 1841 </tr> 1842 <tr> 1843 <td class="paramkey"></td> 1844 <td></td> 1845 <td class="paramtype">float </td> 1846 <td class="paramname"><em>y</em> </td> 1847 </tr> 1848 <tr> 1849 <td></td> 1850 <td>)</td> 1851 <td></td><td></td> 1852 </tr> 1853 </table> 1854 </div> 1855 <div class="memdoc"> 1856 <p>Return the next floating point number from x towards y.</p> 1857 <p>Supports 1,2,3,4 components </p> 1858 1859 </div> 1860 </div> 1861 <a class="anchor" id="a69c2a56f743593439d5ae5e3ec8e517f"></a><!-- doxytag: member="rs_cl.rsh::normalize" ref="a69c2a56f743593439d5ae5e3ec8e517f" args="(float v)" --> 1862 <div class="memitem"> 1863 <div class="memproto"> 1864 <table class="memname"> 1865 <tr> 1866 <td class="memname">float normalize </td> 1867 <td>(</td> 1868 <td class="paramtype">float </td> 1869 <td class="paramname"><em>v</em></td><td>)</td> 1870 <td></td> 1871 </tr> 1872 </table> 1873 </div> 1874 <div class="memdoc"> 1875 <p>Normalize a vector.</p> 1876 <p>Supports 1,2,3,4 components </p> 1877 1878 </div> 1879 </div> 1880 <a class="anchor" id="a9243de1d67fcc847a89f95748d664b19"></a><!-- doxytag: member="rs_cl.rsh::pow" ref="a9243de1d67fcc847a89f95748d664b19" args="(float x, float y)" --> 1881 <div class="memitem"> 1882 <div class="memproto"> 1883 <table class="memname"> 1884 <tr> 1885 <td class="memname">float pow </td> 1886 <td>(</td> 1887 <td class="paramtype">float </td> 1888 <td class="paramname"><em>x</em>, </td> 1889 </tr> 1890 <tr> 1891 <td class="paramkey"></td> 1892 <td></td> 1893 <td class="paramtype">float </td> 1894 <td class="paramname"><em>y</em> </td> 1895 </tr> 1896 <tr> 1897 <td></td> 1898 <td>)</td> 1899 <td></td><td></td> 1900 </tr> 1901 </table> 1902 </div> 1903 <div class="memdoc"> 1904 <p>Return x ^ y.</p> 1905 <p>Supports float, float2, float3, float4. Both arguments must be of the same type. </p> 1906 1907 </div> 1908 </div> 1909 <a class="anchor" id="a67d1fe795e092003f687f3cc6d3c407a"></a><!-- doxytag: member="rs_cl.rsh::pown" ref="a67d1fe795e092003f687f3cc6d3c407a" args="(float v, int p)" --> 1910 <div class="memitem"> 1911 <div class="memproto"> 1912 <table class="memname"> 1913 <tr> 1914 <td class="memname">float pown </td> 1915 <td>(</td> 1916 <td class="paramtype">float </td> 1917 <td class="paramname"><em>v</em>, </td> 1918 </tr> 1919 <tr> 1920 <td class="paramkey"></td> 1921 <td></td> 1922 <td class="paramtype">int </td> 1923 <td class="paramname"><em>p</em> </td> 1924 </tr> 1925 <tr> 1926 <td></td> 1927 <td>)</td> 1928 <td></td><td></td> 1929 </tr> 1930 </table> 1931 </div> 1932 <div class="memdoc"> 1933 <p>Return (v ^ p).</p> 1934 <p>Supports 1,2,3,4 components </p> 1935 1936 </div> 1937 </div> 1938 <a class="anchor" id="a316c30ba3e6bc11673bfd34bb4746d24"></a><!-- doxytag: member="rs_cl.rsh::powr" ref="a316c30ba3e6bc11673bfd34bb4746d24" args="(float v, float p)" --> 1939 <div class="memitem"> 1940 <div class="memproto"> 1941 <table class="memname"> 1942 <tr> 1943 <td class="memname">float powr </td> 1944 <td>(</td> 1945 <td class="paramtype">float </td> 1946 <td class="paramname"><em>v</em>, </td> 1947 </tr> 1948 <tr> 1949 <td class="paramkey"></td> 1950 <td></td> 1951 <td class="paramtype">float </td> 1952 <td class="paramname"><em>p</em> </td> 1953 </tr> 1954 <tr> 1955 <td></td> 1956 <td>)</td> 1957 <td></td><td></td> 1958 </tr> 1959 </table> 1960 </div> 1961 <div class="memdoc"> 1962 <p>Return (v ^ p). </p> 1963 <dl><dt><b>Parameters:</b></dt><dd> 1964 <table class="params"> 1965 <tr><td class="paramname">v</td><td>must be greater than 0.</td></tr> 1966 </table> 1967 </dd> 1968 </dl> 1969 <p>Supports 1,2,3,4 components </p> 1970 1971 </div> 1972 </div> 1973 <a class="anchor" id="aceb63a0da6393b8ac2ed229bae6232d6"></a><!-- doxytag: member="rs_cl.rsh::radians" ref="aceb63a0da6393b8ac2ed229bae6232d6" args="(float degrees)" --> 1974 <div class="memitem"> 1975 <div class="memproto"> 1976 <table class="memname"> 1977 <tr> 1978 <td class="memname">float radians </td> 1979 <td>(</td> 1980 <td class="paramtype">float </td> 1981 <td class="paramname"><em>degrees</em></td><td>)</td> 1982 <td></td> 1983 </tr> 1984 </table> 1985 </div> 1986 <div class="memdoc"> 1987 <p>Convert from degrees to radians.</p> 1988 <p>Supports 1,2,3,4 components </p> 1989 1990 </div> 1991 </div> 1992 <a class="anchor" id="a5188ac0e3af95b0956c6abeafb74fda9"></a><!-- doxytag: member="rs_cl.rsh::remainder" ref="a5188ac0e3af95b0956c6abeafb74fda9" args="(float x, float y)" --> 1993 <div class="memitem"> 1994 <div class="memproto"> 1995 <table class="memname"> 1996 <tr> 1997 <td class="memname">float remainder </td> 1998 <td>(</td> 1999 <td class="paramtype">float </td> 2000 <td class="paramname"><em>x</em>, </td> 2001 </tr> 2002 <tr> 2003 <td class="paramkey"></td> 2004 <td></td> 2005 <td class="paramtype">float </td> 2006 <td class="paramname"><em>y</em> </td> 2007 </tr> 2008 <tr> 2009 <td></td> 2010 <td>)</td> 2011 <td></td><td></td> 2012 </tr> 2013 </table> 2014 </div> 2015 <div class="memdoc"> 2016 <p>Return round x/y to the nearest integer then compute the remander.</p> 2017 <p>Supports 1,2,3,4 components </p> 2018 2019 </div> 2020 </div> 2021 <a class="anchor" id="adb0ffe344ae56ca7fc9083c1f2943e55"></a><!-- doxytag: member="rs_cl.rsh::rint" ref="adb0ffe344ae56ca7fc9083c1f2943e55" args="(float)" --> 2022 <div class="memitem"> 2023 <div class="memproto"> 2024 <table class="memname"> 2025 <tr> 2026 <td class="memname">float rint </td> 2027 <td>(</td> 2028 <td class="paramtype">float </td> 2029 <td class="paramname"></td><td>)</td> 2030 <td></td> 2031 </tr> 2032 </table> 2033 </div> 2034 <div class="memdoc"> 2035 <p>Round to the nearest integral value.</p> 2036 <p>Supports 1,2,3,4 components </p> 2037 2038 </div> 2039 </div> 2040 <a class="anchor" id="a2776b517528b8185a6bb50753af0f6cf"></a><!-- doxytag: member="rs_cl.rsh::rootn" ref="a2776b517528b8185a6bb50753af0f6cf" args="(float v, int n)" --> 2041 <div class="memitem"> 2042 <div class="memproto"> 2043 <table class="memname"> 2044 <tr> 2045 <td class="memname">float rootn </td> 2046 <td>(</td> 2047 <td class="paramtype">float </td> 2048 <td class="paramname"><em>v</em>, </td> 2049 </tr> 2050 <tr> 2051 <td class="paramkey"></td> 2052 <td></td> 2053 <td class="paramtype">int </td> 2054 <td class="paramname"><em>n</em> </td> 2055 </tr> 2056 <tr> 2057 <td></td> 2058 <td>)</td> 2059 <td></td><td></td> 2060 </tr> 2061 </table> 2062 </div> 2063 <div class="memdoc"> 2064 <p>Compute the Nth root of a value.</p> 2065 <p>Supports 1,2,3,4 components </p> 2066 2067 </div> 2068 </div> 2069 <a class="anchor" id="aff4846ab5b947550814d5414a2c3626f"></a><!-- doxytag: member="rs_cl.rsh::round" ref="aff4846ab5b947550814d5414a2c3626f" args="(float)" --> 2070 <div class="memitem"> 2071 <div class="memproto"> 2072 <table class="memname"> 2073 <tr> 2074 <td class="memname">float round </td> 2075 <td>(</td> 2076 <td class="paramtype">float </td> 2077 <td class="paramname"></td><td>)</td> 2078 <td></td> 2079 </tr> 2080 </table> 2081 </div> 2082 <div class="memdoc"> 2083 <p>Round to the nearest integral value. Half values are rounded away from zero.</p> 2084 <p>Supports 1,2,3,4 components </p> 2085 2086 </div> 2087 </div> 2088 <a class="anchor" id="a8a3992b97cb199b1c8d598996b600988"></a><!-- doxytag: member="rs_cl.rsh::rsqrt" ref="a8a3992b97cb199b1c8d598996b600988" args="(float v)" --> 2089 <div class="memitem"> 2090 <div class="memproto"> 2091 <table class="memname"> 2092 <tr> 2093 <td class="memname">float rsqrt </td> 2094 <td>(</td> 2095 <td class="paramtype">float </td> 2096 <td class="paramname"><em>v</em></td><td>)</td> 2097 <td></td> 2098 </tr> 2099 </table> 2100 </div> 2101 <div class="memdoc"> 2102 <p>Return (1 / sqrt(value)).</p> 2103 <p>Supports 1,2,3,4 components </p> 2104 2105 </div> 2106 </div> 2107 <a class="anchor" id="a9fe423cc7d4c6d767f8a608d2ee76657"></a><!-- doxytag: member="rs_cl.rsh::sign" ref="a9fe423cc7d4c6d767f8a608d2ee76657" args="(float v)" --> 2108 <div class="memitem"> 2109 <div class="memproto"> 2110 <table class="memname"> 2111 <tr> 2112 <td class="memname">float sign </td> 2113 <td>(</td> 2114 <td class="paramtype">float </td> 2115 <td class="paramname"><em>v</em></td><td>)</td> 2116 <td></td> 2117 </tr> 2118 </table> 2119 </div> 2120 <div class="memdoc"> 2121 <p>Return the sign of a value.</p> 2122 <p>if (v < 0) return -1.f; else if (v > 0) return 1.f; else return 0.f;</p> 2123 <p>Supports 1,2,3,4 components </p> 2124 2125 </div> 2126 </div> 2127 <a class="anchor" id="a8c8cd526b44eb55aede77cf659f24306"></a><!-- doxytag: member="rs_cl.rsh::sin" ref="a8c8cd526b44eb55aede77cf659f24306" args="(float v)" --> 2128 <div class="memitem"> 2129 <div class="memproto"> 2130 <table class="memname"> 2131 <tr> 2132 <td class="memname">float sin </td> 2133 <td>(</td> 2134 <td class="paramtype">float </td> 2135 <td class="paramname"><em>v</em></td><td>)</td> 2136 <td></td> 2137 </tr> 2138 </table> 2139 </div> 2140 <div class="memdoc"> 2141 <p>Return the sine of a value specified in radians.</p> 2142 <dl><dt><b>Parameters:</b></dt><dd> 2143 <table class="params"> 2144 <tr><td class="paramname">v</td><td>The incoming value in radians Supports 1,2,3,4 components </td></tr> 2145 </table> 2146 </dd> 2147 </dl> 2148 2149 </div> 2150 </div> 2151 <a class="anchor" id="a892c91a30bbc713aa77105d8e9e25881"></a><!-- doxytag: member="rs_cl.rsh::sincos" ref="a892c91a30bbc713aa77105d8e9e25881" args="(float v, float *cosptr)" --> 2152 <div class="memitem"> 2153 <div class="memproto"> 2154 <table class="memname"> 2155 <tr> 2156 <td class="memname">float sincos </td> 2157 <td>(</td> 2158 <td class="paramtype">float </td> 2159 <td class="paramname"><em>v</em>, </td> 2160 </tr> 2161 <tr> 2162 <td class="paramkey"></td> 2163 <td></td> 2164 <td class="paramtype">float * </td> 2165 <td class="paramname"><em>cosptr</em> </td> 2166 </tr> 2167 <tr> 2168 <td></td> 2169 <td>)</td> 2170 <td></td><td></td> 2171 </tr> 2172 </table> 2173 </div> 2174 <div class="memdoc"> 2175 <p>Return the sine and cosine of a value.</p> 2176 <dl class="return"><dt><b>Returns:</b></dt><dd>sine </dd></dl> 2177 <dl><dt><b>Parameters:</b></dt><dd> 2178 <table class="params"> 2179 <tr><td class="paramname">v</td><td>The incoming value in radians </td></tr> 2180 <tr><td class="paramname">*cosptr</td><td>cosptr[0] will be set to the cosine value.</td></tr> 2181 </table> 2182 </dd> 2183 </dl> 2184 <p>Supports 1,2,3,4 components </p> 2185 2186 </div> 2187 </div> 2188 <a class="anchor" id="ae686e0cc567f7ee2b0a84706aa486e4a"></a><!-- doxytag: member="rs_cl.rsh::sinh" ref="ae686e0cc567f7ee2b0a84706aa486e4a" args="(float)" --> 2189 <div class="memitem"> 2190 <div class="memproto"> 2191 <table class="memname"> 2192 <tr> 2193 <td class="memname">float sinh </td> 2194 <td>(</td> 2195 <td class="paramtype">float </td> 2196 <td class="paramname"></td><td>)</td> 2197 <td></td> 2198 </tr> 2199 </table> 2200 </div> 2201 <div class="memdoc"> 2202 <p>Return the hyperbolic sine of a value specified in radians.</p> 2203 <p>Supports 1,2,3,4 components </p> 2204 2205 </div> 2206 </div> 2207 <a class="anchor" id="a9ca027af0acf3ff22d91cd9489766976"></a><!-- doxytag: member="rs_cl.rsh::sinpi" ref="a9ca027af0acf3ff22d91cd9489766976" args="(float v)" --> 2208 <div class="memitem"> 2209 <div class="memproto"> 2210 <table class="memname"> 2211 <tr> 2212 <td class="memname">float sinpi </td> 2213 <td>(</td> 2214 <td class="paramtype">float </td> 2215 <td class="paramname"><em>v</em></td><td>)</td> 2216 <td></td> 2217 </tr> 2218 </table> 2219 </div> 2220 <div class="memdoc"> 2221 <p>Return the sin(v * PI).</p> 2222 <p>Supports 1,2,3,4 components </p> 2223 2224 </div> 2225 </div> 2226 <a class="anchor" id="a92da0faef80c4d8f66e954c8c169a729"></a><!-- doxytag: member="rs_cl.rsh::sqrt" ref="a92da0faef80c4d8f66e954c8c169a729" args="(float)" --> 2227 <div class="memitem"> 2228 <div class="memproto"> 2229 <table class="memname"> 2230 <tr> 2231 <td class="memname">float sqrt </td> 2232 <td>(</td> 2233 <td class="paramtype">float </td> 2234 <td class="paramname"></td><td>)</td> 2235 <td></td> 2236 </tr> 2237 </table> 2238 </div> 2239 <div class="memdoc"> 2240 <p>Return the square root of a value.</p> 2241 <p>Supports 1,2,3,4 components </p> 2242 2243 </div> 2244 </div> 2245 <a class="anchor" id="a9f40337dfee48d1881b87b35aa8133dd"></a><!-- doxytag: member="rs_cl.rsh::step" ref="a9f40337dfee48d1881b87b35aa8133dd" args="(float edge, float v)" --> 2246 <div class="memitem"> 2247 <div class="memproto"> 2248 <table class="memname"> 2249 <tr> 2250 <td class="memname">float step </td> 2251 <td>(</td> 2252 <td class="paramtype">float </td> 2253 <td class="paramname"><em>edge</em>, </td> 2254 </tr> 2255 <tr> 2256 <td class="paramkey"></td> 2257 <td></td> 2258 <td class="paramtype">float </td> 2259 <td class="paramname"><em>v</em> </td> 2260 </tr> 2261 <tr> 2262 <td></td> 2263 <td>)</td> 2264 <td></td><td></td> 2265 </tr> 2266 </table> 2267 </div> 2268 <div class="memdoc"> 2269 <p>if (v < edge) return 0.f; else return 1.f;</p> 2270 <p>Supports 1,2,3,4 components </p> 2271 2272 </div> 2273 </div> 2274 <a class="anchor" id="af12e245af8ff9bb72b5000e7c26cd8fe"></a><!-- doxytag: member="rs_cl.rsh::tan" ref="af12e245af8ff9bb72b5000e7c26cd8fe" args="(float v)" --> 2275 <div class="memitem"> 2276 <div class="memproto"> 2277 <table class="memname"> 2278 <tr> 2279 <td class="memname">float tan </td> 2280 <td>(</td> 2281 <td class="paramtype">float </td> 2282 <td class="paramname"><em>v</em></td><td>)</td> 2283 <td></td> 2284 </tr> 2285 </table> 2286 </div> 2287 <div class="memdoc"> 2288 <p>Return the tangent of a value.</p> 2289 <p>Supports 1,2,3,4 components </p> 2290 <dl><dt><b>Parameters:</b></dt><dd> 2291 <table class="params"> 2292 <tr><td class="paramname">v</td><td>The incoming value in radians </td></tr> 2293 </table> 2294 </dd> 2295 </dl> 2296 2297 </div> 2298 </div> 2299 <a class="anchor" id="abc36e89ddb87ea78451d1c5921ddbd8d"></a><!-- doxytag: member="rs_cl.rsh::tanh" ref="abc36e89ddb87ea78451d1c5921ddbd8d" args="(float)" --> 2300 <div class="memitem"> 2301 <div class="memproto"> 2302 <table class="memname"> 2303 <tr> 2304 <td class="memname">float tanh </td> 2305 <td>(</td> 2306 <td class="paramtype">float </td> 2307 <td class="paramname"></td><td>)</td> 2308 <td></td> 2309 </tr> 2310 </table> 2311 </div> 2312 <div class="memdoc"> 2313 <p>Return the hyperbolic tangent of a value.</p> 2314 <p>Supports 1,2,3,4 components </p> 2315 <dl><dt><b>Parameters:</b></dt><dd> 2316 <table class="params"> 2317 <tr><td class="paramname">v</td><td>The incoming value in radians </td></tr> 2318 </table> 2319 </dd> 2320 </dl> 2321 2322 </div> 2323 </div> 2324 <a class="anchor" id="aee96c8910a7d8b0082574813b6b68b9a"></a><!-- doxytag: member="rs_cl.rsh::tanpi" ref="aee96c8910a7d8b0082574813b6b68b9a" args="(float v)" --> 2325 <div class="memitem"> 2326 <div class="memproto"> 2327 <table class="memname"> 2328 <tr> 2329 <td class="memname">float tanpi </td> 2330 <td>(</td> 2331 <td class="paramtype">float </td> 2332 <td class="paramname"><em>v</em></td><td>)</td> 2333 <td></td> 2334 </tr> 2335 </table> 2336 </div> 2337 <div class="memdoc"> 2338 <p>Return tan(v * PI)</p> 2339 <p>Supports 1,2,3,4 components </p> 2340 2341 </div> 2342 </div> 2343 <a class="anchor" id="ab9f4cbfd2470420ee302f28cf3de6dd0"></a><!-- doxytag: member="rs_cl.rsh::tgamma" ref="ab9f4cbfd2470420ee302f28cf3de6dd0" args="(float)" --> 2344 <div class="memitem"> 2345 <div class="memproto"> 2346 <table class="memname"> 2347 <tr> 2348 <td class="memname">float tgamma </td> 2349 <td>(</td> 2350 <td class="paramtype">float </td> 2351 <td class="paramname"></td><td>)</td> 2352 <td></td> 2353 </tr> 2354 </table> 2355 </div> 2356 <div class="memdoc"> 2357 <p>Compute the gamma function of a value.</p> 2358 <p>Supports 1,2,3,4 components </p> 2359 2360 </div> 2361 </div> 2362 <a class="anchor" id="ad1a7c65693231219db1babeae1c41f15"></a><!-- doxytag: member="rs_cl.rsh::trunc" ref="ad1a7c65693231219db1babeae1c41f15" args="(float)" --> 2363 <div class="memitem"> 2364 <div class="memproto"> 2365 <table class="memname"> 2366 <tr> 2367 <td class="memname">float trunc </td> 2368 <td>(</td> 2369 <td class="paramtype">float </td> 2370 <td class="paramname"></td><td>)</td> 2371 <td></td> 2372 </tr> 2373 </table> 2374 </div> 2375 <div class="memdoc"> 2376 <p>Round to integral using truncation.</p> 2377 <p>Supports 1,2,3,4 components </p> 2378 2379 </div> 2380 </div> 2381 </div> 2382 2383 </body> 2384 </html> 2385