Sha256: 4f10e926074f3410dd1f62e92236cf858f484d92a7fa292ccc00436648ed8467
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 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>pitch= (Vector)</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 256</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pitch=</span>(<span class="ruby-identifier">degrees</span>) <span class="ruby-comment cmt">#Constrain degrees to 0 to 360.</span> <span class="ruby-identifier">value</span> = <span class="ruby-identifier">degrees</span> <span class="ruby-operator">%</span> <span class="ruby-value">360</span> <span class="ruby-comment cmt">#Store as radians internally.</span> <span class="ruby-ivar">@pitch</span> = <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">to_radians</span>(<span class="ruby-identifier">value</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/Vector.src/M000008.html |
zyps-0.4.1 | doc/classes/Vector.src/M000015.html |