Sha256: 5e9e52dc59f8587f655ca87d8fed31b88e5b4b1badae2a1e40189ff518440e85
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>to_radians (Utility)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/zyps.rb, line 343</span> <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">to_radians</span>(<span class="ruby-identifier">degrees</span>) <span class="ruby-identifier">radians</span> = <span class="ruby-identifier">degrees</span> <span class="ruby-operator">/</span> <span class="ruby-value">360.0</span> <span class="ruby-operator">*</span> <span class="ruby-constant">PI2</span> <span class="ruby-identifier">radians</span> = <span class="ruby-identifier">radians</span> <span class="ruby-operator">%</span> <span class="ruby-constant">PI2</span> <span class="ruby-identifier">radians</span> <span class="ruby-operator">+=</span> <span class="ruby-constant">PI2</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">radians</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span> <span class="ruby-identifier">radians</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zyps-0.3.1 | doc/classes/Utility.src/M000034.html |
zyps-0.4.1 | doc/classes/Utility.src/M000059.html |