eymiha_math3 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,512 +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::Point3s</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::Point3s</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/eymiha/math3/point3s_rb.html">
|
59
|
-
lib/eymiha/math3/point3s.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="Point3s.html">Point3s</a> represents a 3D point in spherical
|
86
|
-
coordinates:
|
87
|
-
</p>
|
88
|
-
<ul>
|
89
|
-
<li>s_radius is the distance from the origin.
|
90
|
-
|
91
|
-
</li>
|
92
|
-
<li>theta is the angular distance around the cylindrical axis.
|
93
|
-
|
94
|
-
</li>
|
95
|
-
<li>phi is angle that rotates the cylindrical axis to be directed at the point.
|
96
|
-
|
97
|
-
</li>
|
98
|
-
</ul>
|
99
|
-
<p>
|
100
|
-
The spherical theta coordinate is equal to the cylindrical theta.
|
101
|
-
</p>
|
102
|
-
<p>
|
103
|
-
From a cartesian reference, the cylindrical axis is the <a
|
104
|
-
href="Point3s.html#M000112">z</a> axis, theta is measured using the right
|
105
|
-
hand rule with the positive <a href="Point3s.html#M000110">x</a> axis
|
106
|
-
representing 0, and the phi is an angle measured from the positive <a
|
107
|
-
href="Point3s.html#M000112">z</a> axis.
|
108
|
-
</p>
|
109
|
-
<p>
|
110
|
-
<a href="Point3s.html">Point3s</a> instances may be converted to <a
|
111
|
-
href="Point3.html">Point3</a> and <a href="Point3c.html">Point3c</a>
|
112
|
-
instances, but information at the "boundaries" may be lost.
|
113
|
-
Besides responding as a <a href="Point3s.html">Point3s</a>, an instance
|
114
|
-
will also respond like a <a href="Point3.html">Point3</a> and <a
|
115
|
-
href="Point3c.html">Point3c</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="#M000104">==</a>
|
129
|
-
<a href="#M000106">=~</a>
|
130
|
-
<a href="#M000105">approximately_equals?</a>
|
131
|
-
<a href="#M000113">c_radius</a>
|
132
|
-
<a href="#M000101">new</a>
|
133
|
-
<a href="#M000100">phi=</a>
|
134
|
-
<a href="#M000107">point3</a>
|
135
|
-
<a href="#M000109">point3c</a>
|
136
|
-
<a href="#M000108">point3s</a>
|
137
|
-
<a href="#M000103">set</a>
|
138
|
-
<a href="#M000099">theta=</a>
|
139
|
-
<a href="#M000102">to_s</a>
|
140
|
-
<a href="#M000110">x</a>
|
141
|
-
<a href="#M000111">y</a>
|
142
|
-
<a href="#M000112">z</a>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
</div>
|
147
|
-
|
148
|
-
|
149
|
-
<!-- if includes -->
|
150
|
-
<div id="includes">
|
151
|
-
<h3 class="section-bar">Included Modules</h3>
|
152
|
-
|
153
|
-
<div id="includes-list">
|
154
|
-
<span class="include-name"><a href="ThreeDimensions.html">ThreeDimensions</a></span>
|
155
|
-
</div>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<div id="section">
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
<div id="attribute-list">
|
165
|
-
<h3 class="section-bar">Attributes</h3>
|
166
|
-
|
167
|
-
<div class="name-list">
|
168
|
-
<table>
|
169
|
-
<tr class="top-aligned-row context-row">
|
170
|
-
<td class="context-item-name">phi</td>
|
171
|
-
<td class="context-item-value"> [R] </td>
|
172
|
-
<td class="context-item-desc">
|
173
|
-
spherical phi coordinate reader.
|
174
|
-
|
175
|
-
</td>
|
176
|
-
</tr>
|
177
|
-
<tr class="top-aligned-row context-row">
|
178
|
-
<td class="context-item-name">s_radius</td>
|
179
|
-
<td class="context-item-value"> [RW] </td>
|
180
|
-
<td class="context-item-desc">
|
181
|
-
spherical radius coordinate reader and writer.
|
182
|
-
|
183
|
-
</td>
|
184
|
-
</tr>
|
185
|
-
<tr class="top-aligned-row context-row">
|
186
|
-
<td class="context-item-name">theta</td>
|
187
|
-
<td class="context-item-value"> [R] </td>
|
188
|
-
<td class="context-item-desc">
|
189
|
-
spherical theta coordinate reader.
|
190
|
-
|
191
|
-
</td>
|
192
|
-
</tr>
|
193
|
-
</table>
|
194
|
-
</div>
|
195
|
-
</div>
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
<!-- if method_list -->
|
200
|
-
<div id="methods">
|
201
|
-
<h3 class="section-bar">Public Class methods</h3>
|
202
|
-
|
203
|
-
<div id="method-M000101" class="method-detail">
|
204
|
-
<a name="M000101"></a>
|
205
|
-
|
206
|
-
<div class="method-heading">
|
207
|
-
<a href="Point3s.src/M000101.html" target="Code" class="method-signature"
|
208
|
-
onclick="popupCode('Point3s.src/M000101.html');return false;">
|
209
|
-
<span class="method-name">new</span><span class="method-args">(s_radius=0, theta=0, phi=0)</span>
|
210
|
-
</a>
|
211
|
-
</div>
|
212
|
-
|
213
|
-
<div class="method-description">
|
214
|
-
<p>
|
215
|
-
Creates and returns a <a href="Point3s.html">Point3s</a> instance. Sets the
|
216
|
-
coordinates values using the <a href="Point3s.html#M000103">set</a> method.
|
217
|
-
</p>
|
218
|
-
</div>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
222
|
-
|
223
|
-
<div id="method-M000104" class="method-detail">
|
224
|
-
<a name="M000104"></a>
|
225
|
-
|
226
|
-
<div class="method-heading">
|
227
|
-
<a href="Point3s.src/M000104.html" target="Code" class="method-signature"
|
228
|
-
onclick="popupCode('Point3s.src/M000104.html');return false;">
|
229
|
-
<span class="method-name">==</span><span class="method-args">(point3s)</span>
|
230
|
-
</a>
|
231
|
-
</div>
|
232
|
-
|
233
|
-
<div class="method-description">
|
234
|
-
<p>
|
235
|
-
Returns true if the coordinates of the instance are effectively equal to
|
236
|
-
the coordinates of the given point.
|
237
|
-
</p>
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
|
241
|
-
<div id="method-M000106" class="method-detail">
|
242
|
-
<a name="M000106"></a>
|
243
|
-
|
244
|
-
<div class="method-heading">
|
245
|
-
<span class="method-name">=~</span><span class="method-args">(point3s,epsilon=Numeric.epsilon)</span>
|
246
|
-
</div>
|
247
|
-
|
248
|
-
<div class="method-description">
|
249
|
-
<p>
|
250
|
-
Alias for approximately_equals?
|
251
|
-
</p>
|
252
|
-
</div>
|
253
|
-
</div>
|
254
|
-
|
255
|
-
<div id="method-M000105" class="method-detail">
|
256
|
-
<a name="M000105"></a>
|
257
|
-
|
258
|
-
<div class="method-heading">
|
259
|
-
<a href="Point3s.src/M000105.html" target="Code" class="method-signature"
|
260
|
-
onclick="popupCode('Point3s.src/M000105.html');return false;">
|
261
|
-
<span class="method-name">approximately_equals?</span><span class="method-args">(point3s,epsilon=Numeric.epsilon)</span>
|
262
|
-
</a>
|
263
|
-
</div>
|
264
|
-
|
265
|
-
<div class="method-description">
|
266
|
-
<p>
|
267
|
-
Returns true if the coordinates of the instance are approximately
|
268
|
-
effectively equal to the coordinates of the given point, each coordinate
|
269
|
-
less than a distance epsilon from the target.
|
270
|
-
</p>
|
271
|
-
</div>
|
272
|
-
</div>
|
273
|
-
|
274
|
-
<div id="method-M000113" class="method-detail">
|
275
|
-
<a name="M000113"></a>
|
276
|
-
|
277
|
-
<div class="method-heading">
|
278
|
-
<a href="Point3s.src/M000113.html" target="Code" class="method-signature"
|
279
|
-
onclick="popupCode('Point3s.src/M000113.html');return false;">
|
280
|
-
<span class="method-name">c_radius</span><span class="method-args">()</span>
|
281
|
-
</a>
|
282
|
-
</div>
|
283
|
-
|
284
|
-
<div class="method-description">
|
285
|
-
<p>
|
286
|
-
Returns the cylindrical radius coordinate of the instance.
|
287
|
-
</p>
|
288
|
-
</div>
|
289
|
-
</div>
|
290
|
-
|
291
|
-
<div id="method-M000100" class="method-detail">
|
292
|
-
<a name="M000100"></a>
|
293
|
-
|
294
|
-
<div class="method-heading">
|
295
|
-
<a href="Point3s.src/M000100.html" target="Code" class="method-signature"
|
296
|
-
onclick="popupCode('Point3s.src/M000100.html');return false;">
|
297
|
-
<span class="method-name">phi=</span><span class="method-args">(phi)</span>
|
298
|
-
</a>
|
299
|
-
</div>
|
300
|
-
|
301
|
-
<div class="method-description">
|
302
|
-
<p>
|
303
|
-
spherical coordinate theta writer, rectifying theta to a value in [0, pi].
|
304
|
-
</p>
|
305
|
-
</div>
|
306
|
-
</div>
|
307
|
-
|
308
|
-
<div id="method-M000107" class="method-detail">
|
309
|
-
<a name="M000107"></a>
|
310
|
-
|
311
|
-
<div class="method-heading">
|
312
|
-
<a href="Point3s.src/M000107.html" target="Code" class="method-signature"
|
313
|
-
onclick="popupCode('Point3s.src/M000107.html');return false;">
|
314
|
-
<span class="method-name">point3</span><span class="method-args">(point3=nil, point3s=self)</span>
|
315
|
-
</a>
|
316
|
-
</div>
|
317
|
-
|
318
|
-
<div class="method-description">
|
319
|
-
<p>
|
320
|
-
Returns a 3D point in cartesian coordinates, filling <a
|
321
|
-
href="Point3s.html#M000107">point3</a> if given, and copied from <a
|
322
|
-
href="Point3s.html#M000108">point3s</a>.
|
323
|
-
</p>
|
324
|
-
</div>
|
325
|
-
</div>
|
326
|
-
|
327
|
-
<div id="method-M000109" class="method-detail">
|
328
|
-
<a name="M000109"></a>
|
329
|
-
|
330
|
-
<div class="method-heading">
|
331
|
-
<a href="Point3s.src/M000109.html" target="Code" class="method-signature"
|
332
|
-
onclick="popupCode('Point3s.src/M000109.html');return false;">
|
333
|
-
<span class="method-name">point3c</span><span class="method-args">(point3c=nil,point3s=self)</span>
|
334
|
-
</a>
|
335
|
-
</div>
|
336
|
-
|
337
|
-
<div class="method-description">
|
338
|
-
<p>
|
339
|
-
Returns a 3D point in cartesian coordinates, filling <a
|
340
|
-
href="Point3s.html#M000107">point3</a> if given, and copied from <a
|
341
|
-
href="Point3s.html#M000108">point3s</a>.
|
342
|
-
</p>
|
343
|
-
</div>
|
344
|
-
</div>
|
345
|
-
|
346
|
-
<div id="method-M000108" class="method-detail">
|
347
|
-
<a name="M000108"></a>
|
348
|
-
|
349
|
-
<div class="method-heading">
|
350
|
-
<a href="Point3s.src/M000108.html" target="Code" class="method-signature"
|
351
|
-
onclick="popupCode('Point3s.src/M000108.html');return false;">
|
352
|
-
<span class="method-name">point3s</span><span class="method-args">(s_radius=self.s_radius,theta=self.theta,phi=self.phi)</span>
|
353
|
-
</a>
|
354
|
-
</div>
|
355
|
-
|
356
|
-
<div class="method-description">
|
357
|
-
<p>
|
358
|
-
Returns a copy of <a href="Point3s.html#M000108">point3s</a> with the given
|
359
|
-
spherical coordinates:
|
360
|
-
</p>
|
361
|
-
<ul>
|
362
|
-
<li>s_radius is <a href="../Numeric.html">Numeric</a>, the arguments are copied
|
363
|
-
as the coordinates.
|
364
|
-
|
365
|
-
</li>
|
366
|
-
<li>s_radius responds like a <a href="Point3c.html">Point3c</a>, its
|
367
|
-
coordinates are copied.
|
368
|
-
|
369
|
-
</li>
|
370
|
-
<li>otherwise a TypeError is raised.
|
371
|
-
|
372
|
-
</li>
|
373
|
-
</ul>
|
374
|
-
</div>
|
375
|
-
</div>
|
376
|
-
|
377
|
-
<div id="method-M000103" class="method-detail">
|
378
|
-
<a name="M000103"></a>
|
379
|
-
|
380
|
-
<div class="method-heading">
|
381
|
-
<a href="Point3s.src/M000103.html" target="Code" class="method-signature"
|
382
|
-
onclick="popupCode('Point3s.src/M000103.html');return false;">
|
383
|
-
<span class="method-name">set</span><span class="method-args">(s_radius=0, theta=0, phi=0)</span>
|
384
|
-
</a>
|
385
|
-
</div>
|
386
|
-
|
387
|
-
<div class="method-description">
|
388
|
-
<p>
|
389
|
-
Returns a string representation of the instance. Sets the coordinate values
|
390
|
-
of the instance. When
|
391
|
-
</p>
|
392
|
-
<ul>
|
393
|
-
<li>s_radius is <a href="../Numeric.html">Numeric</a>, the arguments are
|
394
|
-
interpretted as coordinates.
|
395
|
-
|
396
|
-
</li>
|
397
|
-
<li>s_radius responds like a <a href="Point3c.html">Point3c</a>, its spherical
|
398
|
-
coordinates are assigned.
|
399
|
-
|
400
|
-
</li>
|
401
|
-
<li>otherwise a TypeError is raised.
|
402
|
-
|
403
|
-
</li>
|
404
|
-
</ul>
|
405
|
-
<p>
|
406
|
-
The modified instance is returned.
|
407
|
-
</p>
|
408
|
-
</div>
|
409
|
-
</div>
|
410
|
-
|
411
|
-
<div id="method-M000099" class="method-detail">
|
412
|
-
<a name="M000099"></a>
|
413
|
-
|
414
|
-
<div class="method-heading">
|
415
|
-
<a href="Point3s.src/M000099.html" target="Code" class="method-signature"
|
416
|
-
onclick="popupCode('Point3s.src/M000099.html');return false;">
|
417
|
-
<span class="method-name">theta=</span><span class="method-args">(theta)</span>
|
418
|
-
</a>
|
419
|
-
</div>
|
420
|
-
|
421
|
-
<div class="method-description">
|
422
|
-
<p>
|
423
|
-
spherical coordinate theta writer, rectifying theta to a value in [0,
|
424
|
-
2*pi).
|
425
|
-
</p>
|
426
|
-
</div>
|
427
|
-
</div>
|
428
|
-
|
429
|
-
<div id="method-M000102" class="method-detail">
|
430
|
-
<a name="M000102"></a>
|
431
|
-
|
432
|
-
<div class="method-heading">
|
433
|
-
<a href="Point3s.src/M000102.html" target="Code" class="method-signature"
|
434
|
-
onclick="popupCode('Point3s.src/M000102.html');return false;">
|
435
|
-
<span class="method-name">to_s</span><span class="method-args">()</span>
|
436
|
-
</a>
|
437
|
-
</div>
|
438
|
-
|
439
|
-
<div class="method-description">
|
440
|
-
<p>
|
441
|
-
Returns a string representation of the instance.
|
442
|
-
</p>
|
443
|
-
</div>
|
444
|
-
</div>
|
445
|
-
|
446
|
-
<div id="method-M000110" class="method-detail">
|
447
|
-
<a name="M000110"></a>
|
448
|
-
|
449
|
-
<div class="method-heading">
|
450
|
-
<a href="Point3s.src/M000110.html" target="Code" class="method-signature"
|
451
|
-
onclick="popupCode('Point3s.src/M000110.html');return false;">
|
452
|
-
<span class="method-name">x</span><span class="method-args">()</span>
|
453
|
-
</a>
|
454
|
-
</div>
|
455
|
-
|
456
|
-
<div class="method-description">
|
457
|
-
<p>
|
458
|
-
Returns the cartesian <a href="Point3s.html#M000110">x</a> coordinate of
|
459
|
-
the instance.
|
460
|
-
</p>
|
461
|
-
</div>
|
462
|
-
</div>
|
463
|
-
|
464
|
-
<div id="method-M000111" class="method-detail">
|
465
|
-
<a name="M000111"></a>
|
466
|
-
|
467
|
-
<div class="method-heading">
|
468
|
-
<a href="Point3s.src/M000111.html" target="Code" class="method-signature"
|
469
|
-
onclick="popupCode('Point3s.src/M000111.html');return false;">
|
470
|
-
<span class="method-name">y</span><span class="method-args">()</span>
|
471
|
-
</a>
|
472
|
-
</div>
|
473
|
-
|
474
|
-
<div class="method-description">
|
475
|
-
<p>
|
476
|
-
Returns the cartesian <a href="Point3s.html#M000111">y</a> coordinate of
|
477
|
-
the instance.
|
478
|
-
</p>
|
479
|
-
</div>
|
480
|
-
</div>
|
481
|
-
|
482
|
-
<div id="method-M000112" class="method-detail">
|
483
|
-
<a name="M000112"></a>
|
484
|
-
|
485
|
-
<div class="method-heading">
|
486
|
-
<a href="Point3s.src/M000112.html" target="Code" class="method-signature"
|
487
|
-
onclick="popupCode('Point3s.src/M000112.html');return false;">
|
488
|
-
<span class="method-name">z</span><span class="method-args">()</span>
|
489
|
-
</a>
|
490
|
-
</div>
|
491
|
-
|
492
|
-
<div class="method-description">
|
493
|
-
<p>
|
494
|
-
Returns the cartesian <a href="Point3s.html#M000112">z</a> coordinate of
|
495
|
-
the instance.
|
496
|
-
</p>
|
497
|
-
</div>
|
498
|
-
</div>
|
499
|
-
|
500
|
-
|
501
|
-
</div>
|
502
|
-
|
503
|
-
|
504
|
-
</div>
|
505
|
-
|
506
|
-
|
507
|
-
<div id="validator-badges">
|
508
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
509
|
-
</div>
|
510
|
-
|
511
|
-
</body>
|
512
|
-
</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::Point3s)</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/point3s.rb, line 32</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>phi= (Eymiha::Point3s)</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/point3s.rb, line 38</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">phi=</span>(<span class="ruby-identifier">phi</span>)
|
15
|
-
<span class="ruby-ivar">@phi</span> = <span class="ruby-identifier">phi</span>.<span class="ruby-identifier">rectify_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>new (Eymiha::Point3s)</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/point3s.rb, line 44</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">s_radius</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">theta</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">phi</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-identifier">set</span> <span class="ruby-identifier">s_radius</span>, <span class="ruby-identifier">theta</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>to_s (Eymiha::Point3s)</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/point3s.rb, line 49</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
|
-
<span class="ruby-node">"Point3s: s_radius #{s_radius} theta #{theta} phi #{phi}"</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,26 +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::Point3s)</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/point3s.rb, line 59</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">s_radius</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">theta</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">phi</span>=<span class="ruby-value">0</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s_radius</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>
|
16
|
-
<span class="ruby-ivar">@s_radius</span>, <span class="ruby-ivar">@theta</span>, <span class="ruby-ivar">@phi</span> =
|
17
|
-
<span class="ruby-value">1.0</span><span class="ruby-operator">*</span><span class="ruby-identifier">s_radius</span>, (<span class="ruby-value">1.0</span><span class="ruby-operator">*</span><span class="ruby-identifier">theta</span>).<span class="ruby-identifier">rectify_theta</span>, (<span class="ruby-value">1.0</span><span class="ruby-operator">*</span><span class="ruby-identifier">phi</span>).<span class="ruby-identifier">rectify_phi</span>
|
18
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">s_radius</span>.<span class="ruby-identifier">point3s_like?</span>
|
19
|
-
<span class="ruby-identifier">set</span> <span class="ruby-identifier">s_radius</span>.<span class="ruby-identifier">s_radius</span>, <span class="ruby-identifier">s_radius</span>.<span class="ruby-identifier">theta</span>, <span class="ruby-identifier">s_radius</span>.<span class="ruby-identifier">phi</span>
|
20
|
-
<span class="ruby-keyword kw">else</span>
|
21
|
-
<span class="ruby-identifier">raise_no_conversion</span> <span class="ruby-identifier">s_radius</span>
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
23
|
-
<span class="ruby-keyword kw">self</span>
|
24
|
-
<span class="ruby-keyword kw">end</span></pre>
|
25
|
-
</body>
|
26
|
-
</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>== (Eymiha::Point3s)</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/point3s.rb, line 73</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">point3s</span>)
|
15
|
-
(<span class="ruby-identifier">point3s</span>.<span class="ruby-identifier">s_radius</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">s_radius</span>) <span class="ruby-operator">&&</span>
|
16
|
-
((<span class="ruby-identifier">s_radius</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>) <span class="ruby-operator">||</span> ((<span class="ruby-identifier">point3s</span>.<span class="ruby-identifier">theta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">theta</span>) <span class="ruby-operator">&&</span> (<span class="ruby-identifier">point3s</span>.<span class="ruby-identifier">phi</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">phi</span>)))
|
17
|
-
<span class="ruby-keyword kw">end</span></pre>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,21 +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::Point3s)</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/point3s.rb, line 81</span>
|
14
|
-
<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>)
|
15
|
-
(<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">&&</span>
|
16
|
-
((<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>
|
17
|
-
(<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">&&</span>
|
18
|
-
<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>)))))
|
19
|
-
<span class="ruby-keyword kw">end</span></pre>
|
20
|
-
</body>
|
21
|
-
</html>
|