ACos.htm 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>ACos# ( c# )</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. c = a number in the range -1 to +1. <br />
  13. <br />
  14. It is considered to be the cosine of an angle.
  15. </td>
  16. </tr>
  17. </table>
  18. <h1>Description</h1>
  19. <table>
  20. <tr>
  21. <td>
  22. ACos( c ) is an angle which has cosine = c. <br />
  23. It is in the range 0 to +180 degrees.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/ACos.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; ACos example <br />
  32. <br />
  33. ; NaN means "Not a Number", the numerical result is invalid. <br />
  34. <br />
  35. Const width = 640, height = 480 <br />
  36. <br />
  37. Graphics width, height <br />
  38. <br />
  39. <br />
  40. Local C#, AC# ; Cos and ACos <br />
  41. <br />
  42. Print " C ACos( C )" <br />
  43. Print "==================" <br />
  44. <br />
  45. For n = -11 To 11 <br />
  46. <br />
  47. C = n / 10.0 <br />
  48. AC = ACos( C ) <br />
  49. Print RSet(C, 6) + RSet( AC, 10) <br />
  50. <br />
  51. Next <br />
  52. <br />
  53. WaitKey() : End
  54. </td>
  55. </tr>
  56. </table>
  57. <br>
  58. <a target=_top href=../index.htm>Index</a><br>
  59. <br>
  60. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=ACos&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  61. </html>