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.
Files changed (129) hide show
  1. data/gem_package.rb +1 -2
  2. data/lib/eymiha_math3.rb +1 -0
  3. metadata +56 -186
  4. data/html/classes/Eymiha/Envelope3.html +0 -333
  5. data/html/classes/Eymiha/Envelope3.src/M000044.html +0 -22
  6. data/html/classes/Eymiha/Envelope3.src/M000045.html +0 -19
  7. data/html/classes/Eymiha/Envelope3.src/M000046.html +0 -36
  8. data/html/classes/Eymiha/Envelope3.src/M000047.html +0 -19
  9. data/html/classes/Eymiha/Envelope3.src/M000048.html +0 -19
  10. data/html/classes/Eymiha/Envelope3.src/M000049.html +0 -26
  11. data/html/classes/Eymiha/Point3.html +0 -962
  12. data/html/classes/Eymiha/Point3.src/M000064.html +0 -18
  13. data/html/classes/Eymiha/Point3.src/M000065.html +0 -18
  14. data/html/classes/Eymiha/Point3.src/M000066.html +0 -18
  15. data/html/classes/Eymiha/Point3.src/M000067.html +0 -25
  16. data/html/classes/Eymiha/Point3.src/M000068.html +0 -18
  17. data/html/classes/Eymiha/Point3.src/M000069.html +0 -20
  18. data/html/classes/Eymiha/Point3.src/M000071.html +0 -18
  19. data/html/classes/Eymiha/Point3.src/M000072.html +0 -18
  20. data/html/classes/Eymiha/Point3.src/M000073.html +0 -18
  21. data/html/classes/Eymiha/Point3.src/M000074.html +0 -18
  22. data/html/classes/Eymiha/Point3.src/M000075.html +0 -18
  23. data/html/classes/Eymiha/Point3.src/M000076.html +0 -18
  24. data/html/classes/Eymiha/Point3.src/M000077.html +0 -19
  25. data/html/classes/Eymiha/Point3.src/M000078.html +0 -18
  26. data/html/classes/Eymiha/Point3.src/M000079.html +0 -18
  27. data/html/classes/Eymiha/Point3.src/M000080.html +0 -18
  28. data/html/classes/Eymiha/Point3.src/M000081.html +0 -18
  29. data/html/classes/Eymiha/Point3.src/M000082.html +0 -18
  30. data/html/classes/Eymiha/Point3.src/M000083.html +0 -18
  31. data/html/classes/Eymiha/Point3.src/M000085.html +0 -24
  32. data/html/classes/Eymiha/Point3.src/M000086.html +0 -18
  33. data/html/classes/Eymiha/Point3.src/M000088.html +0 -24
  34. data/html/classes/Eymiha/Point3.src/M000089.html +0 -18
  35. data/html/classes/Eymiha/Point3.src/M000091.html +0 -24
  36. data/html/classes/Eymiha/Point3.src/M000092.html +0 -18
  37. data/html/classes/Eymiha/Point3.src/M000093.html +0 -24
  38. data/html/classes/Eymiha/Point3.src/M000094.html +0 -18
  39. data/html/classes/Eymiha/Point3.src/M000095.html +0 -18
  40. data/html/classes/Eymiha/Point3.src/M000096.html +0 -18
  41. data/html/classes/Eymiha/Point3.src/M000097.html +0 -30
  42. data/html/classes/Eymiha/Point3.src/M000098.html +0 -19
  43. data/html/classes/Eymiha/Point3c.html +0 -493
  44. data/html/classes/Eymiha/Point3c.src/M000050.html +0 -18
  45. data/html/classes/Eymiha/Point3c.src/M000051.html +0 -18
  46. data/html/classes/Eymiha/Point3c.src/M000052.html +0 -18
  47. data/html/classes/Eymiha/Point3c.src/M000053.html +0 -25
  48. data/html/classes/Eymiha/Point3c.src/M000054.html +0 -19
  49. data/html/classes/Eymiha/Point3c.src/M000055.html +0 -22
  50. data/html/classes/Eymiha/Point3c.src/M000057.html +0 -18
  51. data/html/classes/Eymiha/Point3c.src/M000058.html +0 -18
  52. data/html/classes/Eymiha/Point3c.src/M000059.html +0 -18
  53. data/html/classes/Eymiha/Point3c.src/M000060.html +0 -18
  54. data/html/classes/Eymiha/Point3c.src/M000061.html +0 -18
  55. data/html/classes/Eymiha/Point3c.src/M000062.html +0 -18
  56. data/html/classes/Eymiha/Point3c.src/M000063.html +0 -19
  57. data/html/classes/Eymiha/Point3s.html +0 -512
  58. data/html/classes/Eymiha/Point3s.src/M000099.html +0 -18
  59. data/html/classes/Eymiha/Point3s.src/M000100.html +0 -18
  60. data/html/classes/Eymiha/Point3s.src/M000101.html +0 -18
  61. data/html/classes/Eymiha/Point3s.src/M000102.html +0 -18
  62. data/html/classes/Eymiha/Point3s.src/M000103.html +0 -26
  63. data/html/classes/Eymiha/Point3s.src/M000104.html +0 -19
  64. data/html/classes/Eymiha/Point3s.src/M000105.html +0 -21
  65. data/html/classes/Eymiha/Point3s.src/M000107.html +0 -18
  66. data/html/classes/Eymiha/Point3s.src/M000108.html +0 -18
  67. data/html/classes/Eymiha/Point3s.src/M000109.html +0 -18
  68. data/html/classes/Eymiha/Point3s.src/M000110.html +0 -18
  69. data/html/classes/Eymiha/Point3s.src/M000111.html +0 -18
  70. data/html/classes/Eymiha/Point3s.src/M000112.html +0 -18
  71. data/html/classes/Eymiha/Point3s.src/M000113.html +0 -18
  72. data/html/classes/Eymiha/Quaternion.html +0 -791
  73. data/html/classes/Eymiha/Quaternion.src/M000016.html +0 -18
  74. data/html/classes/Eymiha/Quaternion.src/M000017.html +0 -18
  75. data/html/classes/Eymiha/Quaternion.src/M000018.html +0 -26
  76. data/html/classes/Eymiha/Quaternion.src/M000019.html +0 -18
  77. data/html/classes/Eymiha/Quaternion.src/M000020.html +0 -19
  78. data/html/classes/Eymiha/Quaternion.src/M000022.html +0 -18
  79. data/html/classes/Eymiha/Quaternion.src/M000023.html +0 -20
  80. data/html/classes/Eymiha/Quaternion.src/M000024.html +0 -22
  81. data/html/classes/Eymiha/Quaternion.src/M000025.html +0 -18
  82. data/html/classes/Eymiha/Quaternion.src/M000027.html +0 -25
  83. data/html/classes/Eymiha/Quaternion.src/M000028.html +0 -18
  84. data/html/classes/Eymiha/Quaternion.src/M000030.html +0 -25
  85. data/html/classes/Eymiha/Quaternion.src/M000031.html +0 -18
  86. data/html/classes/Eymiha/Quaternion.src/M000033.html +0 -30
  87. data/html/classes/Eymiha/Quaternion.src/M000034.html +0 -18
  88. data/html/classes/Eymiha/Quaternion.src/M000035.html +0 -24
  89. data/html/classes/Eymiha/Quaternion.src/M000036.html +0 -18
  90. data/html/classes/Eymiha/Quaternion.src/M000037.html +0 -18
  91. data/html/classes/Eymiha/Quaternion.src/M000038.html +0 -18
  92. data/html/classes/Eymiha/Quaternion.src/M000039.html +0 -18
  93. data/html/classes/Eymiha/Quaternion.src/M000040.html +0 -18
  94. data/html/classes/Eymiha/Quaternion.src/M000041.html +0 -19
  95. data/html/classes/Eymiha/Quaternion.src/M000042.html +0 -18
  96. data/html/classes/Eymiha/Quaternion.src/M000043.html +0 -25
  97. data/html/classes/Eymiha/ThreeDimensions.html +0 -297
  98. data/html/classes/Eymiha/ThreeDimensions.src/M000006.html +0 -18
  99. data/html/classes/Eymiha/ThreeDimensions.src/M000007.html +0 -18
  100. data/html/classes/Eymiha/ThreeDimensions.src/M000008.html +0 -18
  101. data/html/classes/Eymiha/ThreeDimensions.src/M000009.html +0 -18
  102. data/html/classes/Eymiha/ThreeDimensions.src/M000010.html +0 -18
  103. data/html/classes/Eymiha/ThreeDimensions.src/M000011.html +0 -18
  104. data/html/classes/Eymiha/ThreeDimensions.src/M000012.html +0 -18
  105. data/html/classes/Eymiha/ThreeDimensions.src/M000013.html +0 -18
  106. data/html/classes/Eymiha/ThreeDimensions.src/M000014.html +0 -18
  107. data/html/classes/Eymiha/ThreeDimensions.src/M000015.html +0 -18
  108. data/html/classes/Eymiha.html +0 -143
  109. data/html/classes/Numeric.html +0 -167
  110. data/html/classes/Numeric.src/M000001.html +0 -18
  111. data/html/classes/Numeric.src/M000002.html +0 -18
  112. data/html/classes/Object.html +0 -187
  113. data/html/classes/Object.src/M000003.html +0 -18
  114. data/html/classes/Object.src/M000004.html +0 -18
  115. data/html/classes/Object.src/M000005.html +0 -18
  116. data/html/created.rid +0 -1
  117. data/html/files/lib/eymiha/math3/envelope3_rb.html +0 -109
  118. data/html/files/lib/eymiha/math3/math3_rb.html +0 -109
  119. data/html/files/lib/eymiha/math3/point3_rb.html +0 -108
  120. data/html/files/lib/eymiha/math3/point3c_rb.html +0 -108
  121. data/html/files/lib/eymiha/math3/point3s_rb.html +0 -108
  122. data/html/files/lib/eymiha/math3/quaternion_rb.html +0 -108
  123. data/html/files/lib/eymiha/math3_rb.html +0 -113
  124. data/html/fr_class_index.html +0 -35
  125. data/html/fr_file_index.html +0 -33
  126. data/html/fr_method_index.html +0 -139
  127. data/html/index.html +0 -24
  128. data/html/rdoc-style.css +0 -208
  129. 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>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 237</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">scale!</span>(<span class="ruby-value">1</span><span class="ruby-operator">/</span><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>cross (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 248</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cross</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">sqrt3</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">sqrt3</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">sqrt3</span>)
15
- <span class="ruby-identifier">point3</span>.<span class="ruby-identifier">cross!</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,30 +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>cross! (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 253</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cross!</span>(<span class="ruby-identifier">x</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">sqrt3</span>,<span class="ruby-identifier">y</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">sqrt3</span>,<span class="ruby-identifier">z</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">sqrt3</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">@y</span><span class="ruby-operator">*</span><span class="ruby-identifier">z</span>)<span class="ruby-operator">-</span>(<span class="ruby-ivar">@z</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">x</span>)<span class="ruby-operator">-</span>(<span class="ruby-ivar">@x</span><span class="ruby-operator">*</span><span class="ruby-identifier">z</span>), (<span class="ruby-ivar">@x</span><span class="ruby-operator">*</span><span class="ruby-identifier">y</span>)<span class="ruby-operator">-</span>(<span class="ruby-ivar">@y</span><span class="ruby-operator">*</span><span class="ruby-identifier">x</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-keyword kw">if</span> <span class="ruby-identifier">y</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
19
- <span class="ruby-identifier">cross!</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>
20
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">y</span>.<span class="ruby-identifier">point3_like?</span>
21
- <span class="ruby-identifier">set</span>(<span class="ruby-identifier">x</span>).<span class="ruby-identifier">cross!</span>(<span class="ruby-identifier">y</span>)
22
- <span class="ruby-keyword kw">else</span>
23
- <span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">y</span>
24
- <span class="ruby-keyword kw">end</span>
25
- <span class="ruby-keyword kw">else</span>
26
- <span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">x</span>
27
- <span class="ruby-keyword kw">end</span>
28
- <span class="ruby-keyword kw">end</span></pre>
29
- </body>
30
- </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>to_along (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 273</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_along</span> (<span class="ruby-identifier">e</span>, <span class="ruby-identifier">d</span>, <span class="ruby-identifier">normalize</span>=<span class="ruby-keyword kw">true</span>)
15
- <span class="ruby-identifier">scalar</span> = <span class="ruby-identifier">normalize</span> <span class="ruby-value">? </span>(<span class="ruby-identifier">distance_to</span> <span class="ruby-identifier">e</span>) <span class="ruby-operator">:</span> <span class="ruby-value">1</span>
16
- <span class="ruby-identifier">point3</span>(<span class="ruby-identifier">e</span>).<span class="ruby-identifier">subtract!</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">unit!</span>.<span class="ruby-identifier">scale!</span>(<span class="ruby-identifier">d</span><span class="ruby-operator">*</span><span class="ruby-identifier">scalar</span>).<span class="ruby-identifier">add</span>(<span class="ruby-keyword kw">self</span>)
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </html>
@@ -1,493 +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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Eymiha::Point3c</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Eymiha::Point3c</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/eymiha/math3/point3c_rb.html">
59
- lib/eymiha/math3/point3c.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- <a href="Point3c.html">Point3c</a> represents a 3D point in cylindrical
86
- coordinates:
87
- </p>
88
- <ul>
89
- <li>c_radius is the distance from the cylindrical axis.
90
-
91
- </li>
92
- <li>theta is the angular distance around the cylindrical axis.
93
-
94
- </li>
95
- <li>z is the distance from the cylindrical base-plane.
96
-
97
- </li>
98
- </ul>
99
- <p>
100
- The cylindrical theta coordinate is equal to the spherical theta. The
101
- cylindrical z coordinate is equal to the cartesian z coordinate.
102
- </p>
103
- <p>
104
- From a cartesian reference, the cylindrical axis is the z axis, theta is
105
- measured using the right hand rule with the positive <a
106
- href="Point3c.html#M000060">x</a> axis representing 0, and the cylindrical
107
- plane is the plane z=0.
108
- </p>
109
- <p>
110
- <a href="Point3c.html">Point3c</a> instances may be converted to <a
111
- href="Point3.html">Point3</a> and <a href="Point3s.html">Point3s</a>
112
- instances, but information at the &quot;boundaries&quot; may be lost.
113
- Besides responding as a <a href="Point3c.html">Point3c</a>, an instance
114
- will also respond like a <a href="Point3.html">Point3</a> and <a
115
- href="Point3s.html">Point3s</a> as it has a full complement of readers for
116
- the different coordinate systems.
117
- </p>
118
-
119
- </div>
120
-
121
-
122
- </div>
123
-
124
- <div id="method-list">
125
- <h3 class="section-bar">Methods</h3>
126
-
127
- <div class="name-list">
128
- <a href="#M000054">==</a>&nbsp;&nbsp;
129
- <a href="#M000056">=~</a>&nbsp;&nbsp;
130
- <a href="#M000055">approximately_equals?</a>&nbsp;&nbsp;
131
- <a href="#M000051">new</a>&nbsp;&nbsp;
132
- <a href="#M000063">phi</a>&nbsp;&nbsp;
133
- <a href="#M000057">point3</a>&nbsp;&nbsp;
134
- <a href="#M000059">point3c</a>&nbsp;&nbsp;
135
- <a href="#M000058">point3s</a>&nbsp;&nbsp;
136
- <a href="#M000062">s_radius</a>&nbsp;&nbsp;
137
- <a href="#M000053">set</a>&nbsp;&nbsp;
138
- <a href="#M000050">theta=</a>&nbsp;&nbsp;
139
- <a href="#M000052">to_s</a>&nbsp;&nbsp;
140
- <a href="#M000060">x</a>&nbsp;&nbsp;
141
- <a href="#M000061">y</a>&nbsp;&nbsp;
142
- </div>
143
- </div>
144
-
145
- </div>
146
-
147
-
148
- <!-- if includes -->
149
- <div id="includes">
150
- <h3 class="section-bar">Included Modules</h3>
151
-
152
- <div id="includes-list">
153
- <span class="include-name"><a href="ThreeDimensions.html">ThreeDimensions</a></span>
154
- </div>
155
- </div>
156
-
157
- <div id="section">
158
-
159
-
160
-
161
-
162
-
163
- <div id="attribute-list">
164
- <h3 class="section-bar">Attributes</h3>
165
-
166
- <div class="name-list">
167
- <table>
168
- <tr class="top-aligned-row context-row">
169
- <td class="context-item-name">c_radius</td>
170
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
171
- <td class="context-item-desc">
172
- cylindrical radius coordinate reader and writer.
173
-
174
- </td>
175
- </tr>
176
- <tr class="top-aligned-row context-row">
177
- <td class="context-item-name">theta</td>
178
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
179
- <td class="context-item-desc">
180
- cylindrical theta reader.
181
-
182
- </td>
183
- </tr>
184
- <tr class="top-aligned-row context-row">
185
- <td class="context-item-name">z</td>
186
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
187
- <td class="context-item-desc">
188
- cylindrical z coordinate reader and writer.
189
-
190
- </td>
191
- </tr>
192
- </table>
193
- </div>
194
- </div>
195
-
196
-
197
-
198
- <!-- if method_list -->
199
- <div id="methods">
200
- <h3 class="section-bar">Public Class methods</h3>
201
-
202
- <div id="method-M000051" class="method-detail">
203
- <a name="M000051"></a>
204
-
205
- <div class="method-heading">
206
- <a href="Point3c.src/M000051.html" target="Code" class="method-signature"
207
- onclick="popupCode('Point3c.src/M000051.html');return false;">
208
- <span class="method-name">new</span><span class="method-args">(c_radius=0, theta=0, z=0)</span>
209
- </a>
210
- </div>
211
-
212
- <div class="method-description">
213
- <p>
214
- Creates and returns a <a href="Point3c.html">Point3c</a> instance. Sets the
215
- coordinates values using the <a href="Point3c.html#M000053">set</a> method.
216
- </p>
217
- </div>
218
- </div>
219
-
220
- <h3 class="section-bar">Public Instance methods</h3>
221
-
222
- <div id="method-M000054" class="method-detail">
223
- <a name="M000054"></a>
224
-
225
- <div class="method-heading">
226
- <a href="Point3c.src/M000054.html" target="Code" class="method-signature"
227
- onclick="popupCode('Point3c.src/M000054.html');return false;">
228
- <span class="method-name">==</span><span class="method-args">(point3c)</span>
229
- </a>
230
- </div>
231
-
232
- <div class="method-description">
233
- <p>
234
- Returns true if the coordinates of the instance are effectively equal to
235
- the coordinates of the given point.
236
- </p>
237
- </div>
238
- </div>
239
-
240
- <div id="method-M000056" class="method-detail">
241
- <a name="M000056"></a>
242
-
243
- <div class="method-heading">
244
- <span class="method-name">=~</span><span class="method-args">(point3c,epsilon=Numeric.epsilon)</span>
245
- </div>
246
-
247
- <div class="method-description">
248
- <p>
249
- Alias for approximately_equals?
250
- </p>
251
- </div>
252
- </div>
253
-
254
- <div id="method-M000055" class="method-detail">
255
- <a name="M000055"></a>
256
-
257
- <div class="method-heading">
258
- <a href="Point3c.src/M000055.html" target="Code" class="method-signature"
259
- onclick="popupCode('Point3c.src/M000055.html');return false;">
260
- <span class="method-name">approximately_equals?</span><span class="method-args">(point3c,epsilon=Numeric.epsilon)</span>
261
- </a>
262
- </div>
263
-
264
- <div class="method-description">
265
- <p>
266
- Returns true if the coordinates of the instance are approximately
267
- effectively equal to the coordinates of the given point, each coordinate
268
- less than a distance epsilon from the target.
269
- </p>
270
- </div>
271
- </div>
272
-
273
- <div id="method-M000063" class="method-detail">
274
- <a name="M000063"></a>
275
-
276
- <div class="method-heading">
277
- <a href="Point3c.src/M000063.html" target="Code" class="method-signature"
278
- onclick="popupCode('Point3c.src/M000063.html');return false;">
279
- <span class="method-name">phi</span><span class="method-args">()</span>
280
- </a>
281
- </div>
282
-
283
- <div class="method-description">
284
- <p>
285
- Returns the spherical <a href="Point3c.html#M000063">phi</a> coordinate of
286
- the instance.
287
- </p>
288
- </div>
289
- </div>
290
-
291
- <div id="method-M000057" class="method-detail">
292
- <a name="M000057"></a>
293
-
294
- <div class="method-heading">
295
- <a href="Point3c.src/M000057.html" target="Code" class="method-signature"
296
- onclick="popupCode('Point3c.src/M000057.html');return false;">
297
- <span class="method-name">point3</span><span class="method-args">(point3=nil,point3c=self)</span>
298
- </a>
299
- </div>
300
-
301
- <div class="method-description">
302
- <p>
303
- Returns a 3D point in cartesian coordinates, filling <a
304
- href="Point3c.html#M000057">point3</a> if given, and copied from <a
305
- href="Point3c.html#M000059">point3c</a>.
306
- </p>
307
- </div>
308
- </div>
309
-
310
- <div id="method-M000059" class="method-detail">
311
- <a name="M000059"></a>
312
-
313
- <div class="method-heading">
314
- <a href="Point3c.src/M000059.html" target="Code" class="method-signature"
315
- onclick="popupCode('Point3c.src/M000059.html');return false;">
316
- <span class="method-name">point3c</span><span class="method-args">(c_radius=self.c_radius,theta=self.theta,z=self.z)</span>
317
- </a>
318
- </div>
319
-
320
- <div class="method-description">
321
- <p>
322
- Returns a copy of <a href="Point3c.html#M000059">point3c</a> with the given
323
- cylindrical coordinates:
324
- </p>
325
- <ul>
326
- <li>c_radius is <a href="../Numeric.html">Numeric</a>, the arguments are copied
327
- as the coordinates.
328
-
329
- </li>
330
- <li>c_radius responds like a <a href="Point3c.html">Point3c</a>, its
331
- coordinates are copied.
332
-
333
- </li>
334
- <li>otherwise a TypeError is raised.
335
-
336
- </li>
337
- </ul>
338
- </div>
339
- </div>
340
-
341
- <div id="method-M000058" class="method-detail">
342
- <a name="M000058"></a>
343
-
344
- <div class="method-heading">
345
- <a href="Point3c.src/M000058.html" target="Code" class="method-signature"
346
- onclick="popupCode('Point3c.src/M000058.html');return false;">
347
- <span class="method-name">point3s</span><span class="method-args">(point3s=nil,point3c=self)</span>
348
- </a>
349
- </div>
350
-
351
- <div class="method-description">
352
- <p>
353
- Returns a 3D point in spherical coordinates, filling <a
354
- href="Point3c.html#M000058">point3s</a> if given, and copied from <a
355
- href="Point3c.html#M000059">point3c</a>.
356
- </p>
357
- </div>
358
- </div>
359
-
360
- <div id="method-M000062" class="method-detail">
361
- <a name="M000062"></a>
362
-
363
- <div class="method-heading">
364
- <a href="Point3c.src/M000062.html" target="Code" class="method-signature"
365
- onclick="popupCode('Point3c.src/M000062.html');return false;">
366
- <span class="method-name">s_radius</span><span class="method-args">()</span>
367
- </a>
368
- </div>
369
-
370
- <div class="method-description">
371
- <p>
372
- Returns the spherical radius coordinate of the instance.
373
- </p>
374
- </div>
375
- </div>
376
-
377
- <div id="method-M000053" class="method-detail">
378
- <a name="M000053"></a>
379
-
380
- <div class="method-heading">
381
- <a href="Point3c.src/M000053.html" target="Code" class="method-signature"
382
- onclick="popupCode('Point3c.src/M000053.html');return false;">
383
- <span class="method-name">set</span><span class="method-args">(c_radius=0, theta=0, z=0)</span>
384
- </a>
385
- </div>
386
-
387
- <div class="method-description">
388
- <p>
389
- Sets the coordinate values of the instance. When
390
- </p>
391
- <ul>
392
- <li>c_radius is <a href="../Numeric.html">Numeric</a>, the arguments are
393
- interpretted as coordinates.
394
-
395
- </li>
396
- <li>c_radius responds like a <a href="Point3c.html">Point3c</a>, its
397
- cylindrical coordinates are assigned.
398
-
399
- </li>
400
- <li>otherwise a TypeError is raised.
401
-
402
- </li>
403
- </ul>
404
- <p>
405
- The modified instance is returned.
406
- </p>
407
- </div>
408
- </div>
409
-
410
- <div id="method-M000050" class="method-detail">
411
- <a name="M000050"></a>
412
-
413
- <div class="method-heading">
414
- <a href="Point3c.src/M000050.html" target="Code" class="method-signature"
415
- onclick="popupCode('Point3c.src/M000050.html');return false;">
416
- <span class="method-name">theta=</span><span class="method-args">(theta)</span>
417
- </a>
418
- </div>
419
-
420
- <div class="method-description">
421
- <p>
422
- cylindrical theta coordinate writer, rectifying theta to a value in [0,
423
- 2*pi).
424
- </p>
425
- </div>
426
- </div>
427
-
428
- <div id="method-M000052" class="method-detail">
429
- <a name="M000052"></a>
430
-
431
- <div class="method-heading">
432
- <a href="Point3c.src/M000052.html" target="Code" class="method-signature"
433
- onclick="popupCode('Point3c.src/M000052.html');return false;">
434
- <span class="method-name">to_s</span><span class="method-args">()</span>
435
- </a>
436
- </div>
437
-
438
- <div class="method-description">
439
- <p>
440
- Returns a string representation of the instance.
441
- </p>
442
- </div>
443
- </div>
444
-
445
- <div id="method-M000060" class="method-detail">
446
- <a name="M000060"></a>
447
-
448
- <div class="method-heading">
449
- <a href="Point3c.src/M000060.html" target="Code" class="method-signature"
450
- onclick="popupCode('Point3c.src/M000060.html');return false;">
451
- <span class="method-name">x</span><span class="method-args">()</span>
452
- </a>
453
- </div>
454
-
455
- <div class="method-description">
456
- <p>
457
- Returns the cartesian <a href="Point3c.html#M000060">x</a> coordinate of
458
- the instance.
459
- </p>
460
- </div>
461
- </div>
462
-
463
- <div id="method-M000061" class="method-detail">
464
- <a name="M000061"></a>
465
-
466
- <div class="method-heading">
467
- <a href="Point3c.src/M000061.html" target="Code" class="method-signature"
468
- onclick="popupCode('Point3c.src/M000061.html');return false;">
469
- <span class="method-name">y</span><span class="method-args">()</span>
470
- </a>
471
- </div>
472
-
473
- <div class="method-description">
474
- <p>
475
- Returns the cartesian <a href="Point3c.html#M000061">y</a> coordinate of
476
- the instance.
477
- </p>
478
- </div>
479
- </div>
480
-
481
-
482
- </div>
483
-
484
-
485
- </div>
486
-
487
-
488
- <div id="validator-badges">
489
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
490
- </div>
491
-
492
- </body>
493
- </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::Point3c)</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/point3c.rb, line 33</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">theta=</span>(<span class="ruby-identifier">theta</span>)
15
- <span class="ruby-ivar">@theta</span> = <span class="ruby-identifier">theta</span>.<span class="ruby-identifier">rectify_theta</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::Point3c)</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/point3c.rb, line 39</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">c_radius</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">theta</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">c_radius</span>, <span class="ruby-identifier">theta</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::Point3c)</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/point3c.rb, line 44</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
- <span class="ruby-node">&quot;Point3c: c_radius #{c_radius} theta #{theta} z #{z}&quot;</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>