Sha256: b074e2d5476b7856a3f043fe198f344c66ee6e6ce63772cfc93ac374871856c2

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 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::Point3s)</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/point3s.rb, line 81</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3s</span>,<span class="ruby-identifier">epsilon</span>=<span class="ruby-constant">Numeric</span>.<span class="ruby-identifier">epsilon</span>)
      (<span class="ruby-ivar">@s_radius</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3s</span>.<span class="ruby-identifier">s_radius</span>,<span class="ruby-identifier">epsilon</span>)<span class="ruby-operator">&amp;&amp;</span>
       ((<span class="ruby-ivar">@s_radius</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-value">0</span>,<span class="ruby-identifier">epsilon</span>) <span class="ruby-operator">||</span>
         (<span class="ruby-ivar">@theta</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3s</span>.<span class="ruby-identifier">theta</span>,<span class="ruby-identifier">epsilon</span>)<span class="ruby-operator">&amp;&amp;</span>
          <span class="ruby-ivar">@phi</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3s</span>.<span class="ruby-identifier">phi</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/Point3s.src/M000105.html