Sha256: db28a53e928af0b649b70a2d495dca3be11c4ab73ecebe1d178f01a0cd4ea170

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 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>approximately_equals? (Eymiha::Quaternion)</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/eymiha/math3/quaternion.rb, line 65</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">quaternion</span>,<span class="ruby-identifier">epsilon</span>=<span class="ruby-constant">Numeric</span>.<span class="ruby-identifier">epsilon</span>)
      (<span class="ruby-ivar">@axis</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">quaternion</span>.<span class="ruby-identifier">axis</span>,<span class="ruby-identifier">epsilon</span>)<span class="ruby-operator">&amp;&amp;</span>
       <span class="ruby-ivar">@real</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">quaternion</span>.<span class="ruby-identifier">real</span>,<span class="ruby-identifier">epsilon</span>))
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eymiha_math3-1.0.0 html/classes/Eymiha/Quaternion.src/M000020.html