eymiha_math3 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/gem_package.rb +1 -2
- data/lib/eymiha_math3.rb +1 -0
- metadata +56 -186
- data/html/classes/Eymiha/Envelope3.html +0 -333
- data/html/classes/Eymiha/Envelope3.src/M000044.html +0 -22
- data/html/classes/Eymiha/Envelope3.src/M000045.html +0 -19
- data/html/classes/Eymiha/Envelope3.src/M000046.html +0 -36
- data/html/classes/Eymiha/Envelope3.src/M000047.html +0 -19
- data/html/classes/Eymiha/Envelope3.src/M000048.html +0 -19
- data/html/classes/Eymiha/Envelope3.src/M000049.html +0 -26
- data/html/classes/Eymiha/Point3.html +0 -962
- data/html/classes/Eymiha/Point3.src/M000064.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000065.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000066.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000067.html +0 -25
- data/html/classes/Eymiha/Point3.src/M000068.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000069.html +0 -20
- data/html/classes/Eymiha/Point3.src/M000071.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000072.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000073.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000074.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000075.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000076.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000077.html +0 -19
- data/html/classes/Eymiha/Point3.src/M000078.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000079.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000080.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000081.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000082.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000083.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000085.html +0 -24
- data/html/classes/Eymiha/Point3.src/M000086.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000088.html +0 -24
- data/html/classes/Eymiha/Point3.src/M000089.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000091.html +0 -24
- data/html/classes/Eymiha/Point3.src/M000092.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000093.html +0 -24
- data/html/classes/Eymiha/Point3.src/M000094.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000095.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000096.html +0 -18
- data/html/classes/Eymiha/Point3.src/M000097.html +0 -30
- data/html/classes/Eymiha/Point3.src/M000098.html +0 -19
- data/html/classes/Eymiha/Point3c.html +0 -493
- data/html/classes/Eymiha/Point3c.src/M000050.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000051.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000052.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000053.html +0 -25
- data/html/classes/Eymiha/Point3c.src/M000054.html +0 -19
- data/html/classes/Eymiha/Point3c.src/M000055.html +0 -22
- data/html/classes/Eymiha/Point3c.src/M000057.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000058.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000059.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000060.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000061.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000062.html +0 -18
- data/html/classes/Eymiha/Point3c.src/M000063.html +0 -19
- data/html/classes/Eymiha/Point3s.html +0 -512
- data/html/classes/Eymiha/Point3s.src/M000099.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000100.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000101.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000102.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000103.html +0 -26
- data/html/classes/Eymiha/Point3s.src/M000104.html +0 -19
- data/html/classes/Eymiha/Point3s.src/M000105.html +0 -21
- data/html/classes/Eymiha/Point3s.src/M000107.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000108.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000109.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000110.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000111.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000112.html +0 -18
- data/html/classes/Eymiha/Point3s.src/M000113.html +0 -18
- data/html/classes/Eymiha/Quaternion.html +0 -791
- data/html/classes/Eymiha/Quaternion.src/M000016.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000017.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000018.html +0 -26
- data/html/classes/Eymiha/Quaternion.src/M000019.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000020.html +0 -19
- data/html/classes/Eymiha/Quaternion.src/M000022.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000023.html +0 -20
- data/html/classes/Eymiha/Quaternion.src/M000024.html +0 -22
- data/html/classes/Eymiha/Quaternion.src/M000025.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000027.html +0 -25
- data/html/classes/Eymiha/Quaternion.src/M000028.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000030.html +0 -25
- data/html/classes/Eymiha/Quaternion.src/M000031.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000033.html +0 -30
- data/html/classes/Eymiha/Quaternion.src/M000034.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000035.html +0 -24
- data/html/classes/Eymiha/Quaternion.src/M000036.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000037.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000038.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000039.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000040.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000041.html +0 -19
- data/html/classes/Eymiha/Quaternion.src/M000042.html +0 -18
- data/html/classes/Eymiha/Quaternion.src/M000043.html +0 -25
- data/html/classes/Eymiha/ThreeDimensions.html +0 -297
- data/html/classes/Eymiha/ThreeDimensions.src/M000006.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000007.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000008.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000009.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000010.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000011.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000012.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000013.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000014.html +0 -18
- data/html/classes/Eymiha/ThreeDimensions.src/M000015.html +0 -18
- data/html/classes/Eymiha.html +0 -143
- data/html/classes/Numeric.html +0 -167
- data/html/classes/Numeric.src/M000001.html +0 -18
- data/html/classes/Numeric.src/M000002.html +0 -18
- data/html/classes/Object.html +0 -187
- data/html/classes/Object.src/M000003.html +0 -18
- data/html/classes/Object.src/M000004.html +0 -18
- data/html/classes/Object.src/M000005.html +0 -18
- data/html/created.rid +0 -1
- data/html/files/lib/eymiha/math3/envelope3_rb.html +0 -109
- data/html/files/lib/eymiha/math3/math3_rb.html +0 -109
- data/html/files/lib/eymiha/math3/point3_rb.html +0 -108
- data/html/files/lib/eymiha/math3/point3c_rb.html +0 -108
- data/html/files/lib/eymiha/math3/point3s_rb.html +0 -108
- data/html/files/lib/eymiha/math3/quaternion_rb.html +0 -108
- data/html/files/lib/eymiha/math3_rb.html +0 -113
- data/html/fr_class_index.html +0 -35
- data/html/fr_file_index.html +0 -33
- data/html/fr_method_index.html +0 -139
- data/html/index.html +0 -24
- data/html/rdoc-style.css +0 -208
- data/lib/#envelope3.rb# +0 -96
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>origin (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 27</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Point3</span>.<span class="ruby-identifier">origin</span>
|
15
|
-
<span class="ruby-ivar">@@origin3</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>new (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 33</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">y</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-identifier">set</span> <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>to_s (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 38</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
|
-
<span class="ruby-node">"Point3: x #{x} y #{y} z #{z}"</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>set (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 47</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">y</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
|
16
|
-
<span class="ruby-ivar">@x</span>, <span class="ruby-ivar">@y</span>, <span class="ruby-ivar">@z</span> = <span class="ruby-value">1.0</span><span class="ruby-operator">*</span><span class="ruby-identifier">x</span>, <span class="ruby-value">1.0</span><span class="ruby-operator">*</span><span class="ruby-identifier">y</span>, <span class="ruby-value">1.0</span><span class="ruby-operator">*</span><span class="ruby-identifier">z</span>
|
17
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">point3_like?</span>
|
18
|
-
<span class="ruby-identifier">set</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">x</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">y</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">z</span>
|
19
|
-
<span class="ruby-keyword kw">else</span>
|
20
|
-
<span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">x</span>
|
21
|
-
<span class="ruby-keyword kw">end</span>
|
22
|
-
<span class="ruby-keyword kw">self</span>
|
23
|
-
<span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>== (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 60</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">point3</span>)
|
15
|
-
(<span class="ruby-ivar">@x</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">point3</span>.<span class="ruby-identifier">x</span>)<span class="ruby-operator">&&</span>(<span class="ruby-ivar">@y</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">point3</span>.<span class="ruby-identifier">y</span>)<span class="ruby-operator">&&</span>(<span class="ruby-ivar">@z</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">point3</span>.<span class="ruby-identifier">z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>approximately_equals? (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 67</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3</span>,<span class="ruby-identifier">epsilon</span>=<span class="ruby-constant">Numeric</span>.<span class="ruby-identifier">epsilon</span>)
|
15
|
-
<span class="ruby-ivar">@x</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">x</span>,<span class="ruby-identifier">epsilon</span>)<span class="ruby-operator">&&</span>
|
16
|
-
<span class="ruby-ivar">@y</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">y</span>,<span class="ruby-identifier">epsilon</span>)<span class="ruby-operator">&&</span>
|
17
|
-
<span class="ruby-ivar">@z</span>.<span class="ruby-identifier">approximately_equals?</span>(<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">z</span>,<span class="ruby-identifier">epsilon</span>)
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>point3 (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 79</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">point3</span>(<span class="ruby-identifier">x</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">z</span>)
|
15
|
-
<span class="ruby-constant">Point3</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>point3s (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 85</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">point3s</span>(<span class="ruby-identifier">point3s</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">point3</span>=<span class="ruby-keyword kw">self</span>)
|
15
|
-
(<span class="ruby-identifier">point3s</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Point3s</span>.<span class="ruby-identifier">new</span>).<span class="ruby-identifier">set</span>(<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">s_radius</span>,<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">theta</span>,<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">phi</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>point3c (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 91</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">point3c</span>(<span class="ruby-identifier">point3c</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">point3</span>=<span class="ruby-keyword kw">self</span>)
|
15
|
-
(<span class="ruby-identifier">point3c</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Point3c</span>.<span class="ruby-identifier">new</span>).<span class="ruby-identifier">set</span>(<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">c_radius</span>,<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">theta</span>,<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>s_radius (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 96</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">s_radius</span>
|
15
|
-
<span class="ruby-identifier">modulus</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>c_radius (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 101</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">c_radius</span>
|
15
|
-
<span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>((<span class="ruby-ivar">@x</span><span class="ruby-operator">*</span><span class="ruby-ivar">@x</span>)<span class="ruby-operator">+</span>(<span class="ruby-ivar">@y</span><span class="ruby-operator">*</span><span class="ruby-ivar">@y</span>))
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>theta (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 106</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">theta</span>
|
15
|
-
(<span class="ruby-ivar">@x</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>)<span class="ruby-operator">?</span> ((<span class="ruby-ivar">@y</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>)<span class="ruby-operator">?</span> <span class="ruby-ivar">@@pio2</span> <span class="ruby-operator">:</span> <span class="ruby-operator">-</span><span class="ruby-ivar">@@pio2</span>) <span class="ruby-operator">:</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>(<span class="ruby-ivar">@y</span>,<span class="ruby-ivar">@x</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>phi (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 111</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">phi</span>
|
15
|
-
<span class="ruby-identifier">m</span> = <span class="ruby-identifier">modulus</span>
|
16
|
-
(<span class="ruby-identifier">m</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>)<span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">acos</span>(<span class="ruby-identifier">z</span><span class="ruby-operator">/</span><span class="ruby-identifier">m</span>)
|
17
|
-
<span class="ruby-keyword kw">end</span></pre>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>distance_to (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 117</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance_to</span>(<span class="ruby-identifier">point3</span>)
|
15
|
-
<span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(((<span class="ruby-ivar">@x</span><span class="ruby-operator">-</span><span class="ruby-identifier">point3</span>.<span class="ruby-identifier">x</span>)<span class="ruby-operator">**</span><span class="ruby-value">2</span>)<span class="ruby-operator">+</span>((<span class="ruby-ivar">@y</span><span class="ruby-operator">-</span><span class="ruby-identifier">point3</span>.<span class="ruby-identifier">y</span>)<span class="ruby-operator">**</span><span class="ruby-value">2</span>)<span class="ruby-operator">+</span>((<span class="ruby-ivar">@z</span><span class="ruby-operator">-</span><span class="ruby-identifier">point3</span>.<span class="ruby-identifier">z</span>)<span class="ruby-operator">**</span><span class="ruby-value">2</span>))
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>modulus (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 122</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modulus</span>
|
15
|
-
<span class="ruby-identifier">distance_to</span>(<span class="ruby-identifier">origin</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>dot (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 128</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dot</span>(<span class="ruby-identifier">point3</span>)
|
15
|
-
(<span class="ruby-ivar">@x</span><span class="ruby-operator">*</span><span class="ruby-identifier">point3</span>.<span class="ruby-identifier">x</span>)<span class="ruby-operator">+</span>(<span class="ruby-ivar">@y</span><span class="ruby-operator">*</span><span class="ruby-identifier">point3</span>.<span class="ruby-identifier">y</span>)<span class="ruby-operator">+</span>(<span class="ruby-ivar">@z</span><span class="ruby-operator">*</span><span class="ruby-identifier">point3</span>.<span class="ruby-identifier">z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>mirror (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 134</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mirror</span>
|
15
|
-
<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">mirror!</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>mirror! (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 140</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mirror!</span>
|
15
|
-
<span class="ruby-identifier">set</span>(<span class="ruby-operator">-</span><span class="ruby-ivar">@x</span>, <span class="ruby-operator">-</span><span class="ruby-ivar">@y</span>, <span class="ruby-operator">-</span><span class="ruby-ivar">@z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>add (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 149</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">add!</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>add! (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 156</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add!</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
|
16
|
-
<span class="ruby-identifier">set</span>(<span class="ruby-ivar">@x</span><span class="ruby-operator">+</span><span class="ruby-identifier">x</span>, <span class="ruby-ivar">@y</span><span class="ruby-operator">+</span><span class="ruby-identifier">y</span>, <span class="ruby-ivar">@z</span><span class="ruby-operator">+</span><span class="ruby-identifier">z</span>)
|
17
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">point3_like?</span>
|
18
|
-
<span class="ruby-identifier">add!</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">x</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">y</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">z</span>
|
19
|
-
<span class="ruby-keyword kw">else</span>
|
20
|
-
<span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">x</span>
|
21
|
-
<span class="ruby-keyword kw">end</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>subtract (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 171</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subtract</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">subtract!</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>subtract! (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 178</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subtract!</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
|
16
|
-
<span class="ruby-identifier">add!</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">x</span>, <span class="ruby-operator">-</span><span class="ruby-identifier">y</span>, <span class="ruby-operator">-</span><span class="ruby-identifier">z</span>)
|
17
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">point3_like?</span>
|
18
|
-
<span class="ruby-identifier">subtract!</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">x</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">y</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">z</span>
|
19
|
-
<span class="ruby-keyword kw">else</span>
|
20
|
-
<span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">x</span>
|
21
|
-
<span class="ruby-keyword kw">end</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>multiply (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 193</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiply</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">1</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">1</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">1</span>)
|
15
|
-
<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">multiply!</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">z</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>multiply! (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 200</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiply!</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">1</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">1</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">1</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
|
16
|
-
<span class="ruby-identifier">set</span>(<span class="ruby-ivar">@x</span><span class="ruby-operator">*</span><span class="ruby-identifier">x</span>, <span class="ruby-ivar">@y</span><span class="ruby-operator">*</span><span class="ruby-identifier">y</span>, <span class="ruby-ivar">@z</span><span class="ruby-operator">*</span><span class="ruby-identifier">z</span>)
|
17
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">point3_like?</span>
|
18
|
-
<span class="ruby-identifier">multiply!</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">x</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">y</span>, <span class="ruby-identifier">x</span>.<span class="ruby-identifier">z</span>
|
19
|
-
<span class="ruby-keyword kw">else</span>
|
20
|
-
<span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">x</span>
|
21
|
-
<span class="ruby-keyword kw">end</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>scale (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 215</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scale</span>(<span class="ruby-identifier">scalar</span>=<span class="ruby-value">1</span>)
|
15
|
-
<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">scale!</span>(<span class="ruby-identifier">scalar</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>scale! (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 220</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scale!</span>(<span class="ruby-identifier">scalar</span>=<span class="ruby-value">1</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scalar</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
|
16
|
-
<span class="ruby-identifier">multiply!</span> <span class="ruby-identifier">scalar</span>, <span class="ruby-identifier">scalar</span>, <span class="ruby-identifier">scalar</span>
|
17
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">scalar</span>.<span class="ruby-identifier">point3_like?</span>
|
18
|
-
<span class="ruby-identifier">multiply!</span> <span class="ruby-identifier">scalar</span>
|
19
|
-
<span class="ruby-keyword kw">else</span>
|
20
|
-
<span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">scalar</span>
|
21
|
-
<span class="ruby-keyword kw">end</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>unit (Eymiha::Point3)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/math3/point3.rb, line 232</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unit</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">1</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">1</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">1</span>)
|
15
|
-
<span class="ruby-identifier">point3</span>.<span class="ruby-identifier">unit!</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|