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,962 +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::Point3</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::Point3</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/eymiha/math3/point3_rb.html">
|
59
|
-
lib/eymiha/math3/point3.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="Point3.html">Point3</a> represents a 3D point in cartesian
|
86
|
-
coordinates:
|
87
|
-
</p>
|
88
|
-
<ul>
|
89
|
-
<li>x is the signed distance from the 3D <a
|
90
|
-
href="Point3.html#M000064">origin</a> along the x axis.
|
91
|
-
|
92
|
-
</li>
|
93
|
-
<li>y is the signed distance from the 3D <a
|
94
|
-
href="Point3.html#M000064">origin</a> along the y axis.
|
95
|
-
|
96
|
-
</li>
|
97
|
-
<li>z is the signed distance from the 3D <a
|
98
|
-
href="Point3.html#M000064">origin</a> along the z axis.
|
99
|
-
|
100
|
-
</li>
|
101
|
-
</ul>
|
102
|
-
<p>
|
103
|
-
The cylindrical z coordinate is equal to the cartesian z coordinate.
|
104
|
-
</p>
|
105
|
-
<p>
|
106
|
-
<a href="Point3.html">Point3</a> instances may be converted to <a
|
107
|
-
href="Point3s.html">Point3s</a> and <a href="Point3c.html">Point3c</a>
|
108
|
-
instances, but information at the "boundaries" may be lost.
|
109
|
-
Besides responding as a <a href="Point3.html">Point3</a>, an instance will
|
110
|
-
also respond like a <a href="Point3s.html">Point3s</a> and <a
|
111
|
-
href="Point3c.html">Point3c</a> as it has a full complement of readers for
|
112
|
-
the different coordinate systems.
|
113
|
-
</p>
|
114
|
-
|
115
|
-
</div>
|
116
|
-
|
117
|
-
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div id="method-list">
|
121
|
-
<h3 class="section-bar">Methods</h3>
|
122
|
-
|
123
|
-
<div class="name-list">
|
124
|
-
<a href="#M000090">*</a>
|
125
|
-
<a href="#M000084">+</a>
|
126
|
-
<a href="#M000087">-</a>
|
127
|
-
<a href="#M000068">==</a>
|
128
|
-
<a href="#M000070">=~</a>
|
129
|
-
<a href="#M000083">add</a>
|
130
|
-
<a href="#M000085">add!</a>
|
131
|
-
<a href="#M000069">approximately_equals?</a>
|
132
|
-
<a href="#M000075">c_radius</a>
|
133
|
-
<a href="#M000096">cross</a>
|
134
|
-
<a href="#M000097">cross!</a>
|
135
|
-
<a href="#M000078">distance_to</a>
|
136
|
-
<a href="#M000080">dot</a>
|
137
|
-
<a href="#M000081">mirror</a>
|
138
|
-
<a href="#M000082">mirror!</a>
|
139
|
-
<a href="#M000079">modulus</a>
|
140
|
-
<a href="#M000089">multiply</a>
|
141
|
-
<a href="#M000091">multiply!</a>
|
142
|
-
<a href="#M000065">new</a>
|
143
|
-
<a href="#M000064">origin</a>
|
144
|
-
<a href="#M000077">phi</a>
|
145
|
-
<a href="#M000071">point3</a>
|
146
|
-
<a href="#M000073">point3c</a>
|
147
|
-
<a href="#M000072">point3s</a>
|
148
|
-
<a href="#M000074">s_radius</a>
|
149
|
-
<a href="#M000092">scale</a>
|
150
|
-
<a href="#M000093">scale!</a>
|
151
|
-
<a href="#M000067">set</a>
|
152
|
-
<a href="#M000086">subtract</a>
|
153
|
-
<a href="#M000088">subtract!</a>
|
154
|
-
<a href="#M000076">theta</a>
|
155
|
-
<a href="#M000098">to_along</a>
|
156
|
-
<a href="#M000066">to_s</a>
|
157
|
-
<a href="#M000094">unit</a>
|
158
|
-
<a href="#M000095">unit!</a>
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
|
162
|
-
</div>
|
163
|
-
|
164
|
-
|
165
|
-
<!-- if includes -->
|
166
|
-
<div id="includes">
|
167
|
-
<h3 class="section-bar">Included Modules</h3>
|
168
|
-
|
169
|
-
<div id="includes-list">
|
170
|
-
<span class="include-name"><a href="ThreeDimensions.html">ThreeDimensions</a></span>
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
|
174
|
-
<div id="section">
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<div id="attribute-list">
|
181
|
-
<h3 class="section-bar">Attributes</h3>
|
182
|
-
|
183
|
-
<div class="name-list">
|
184
|
-
<table>
|
185
|
-
<tr class="top-aligned-row context-row">
|
186
|
-
<td class="context-item-name">x</td>
|
187
|
-
<td class="context-item-value"> [RW] </td>
|
188
|
-
<td class="context-item-desc">
|
189
|
-
x coordinate reader and writer.
|
190
|
-
|
191
|
-
</td>
|
192
|
-
</tr>
|
193
|
-
<tr class="top-aligned-row context-row">
|
194
|
-
<td class="context-item-name">y</td>
|
195
|
-
<td class="context-item-value"> [RW] </td>
|
196
|
-
<td class="context-item-desc">
|
197
|
-
y coordinate reader and writer.
|
198
|
-
|
199
|
-
</td>
|
200
|
-
</tr>
|
201
|
-
<tr class="top-aligned-row context-row">
|
202
|
-
<td class="context-item-name">z</td>
|
203
|
-
<td class="context-item-value"> [RW] </td>
|
204
|
-
<td class="context-item-desc">
|
205
|
-
z coordinate reader and writer.
|
206
|
-
|
207
|
-
</td>
|
208
|
-
</tr>
|
209
|
-
</table>
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
<!-- if method_list -->
|
216
|
-
<div id="methods">
|
217
|
-
<h3 class="section-bar">Public Class methods</h3>
|
218
|
-
|
219
|
-
<div id="method-M000065" class="method-detail">
|
220
|
-
<a name="M000065"></a>
|
221
|
-
|
222
|
-
<div class="method-heading">
|
223
|
-
<a href="Point3.src/M000065.html" target="Code" class="method-signature"
|
224
|
-
onclick="popupCode('Point3.src/M000065.html');return false;">
|
225
|
-
<span class="method-name">new</span><span class="method-args">(x=0, y=0, z=0)</span>
|
226
|
-
</a>
|
227
|
-
</div>
|
228
|
-
|
229
|
-
<div class="method-description">
|
230
|
-
<p>
|
231
|
-
Creates and returns a <a href="Point3.html">Point3</a> instance. Sets the
|
232
|
-
coordinates values using the <a href="Point3.html#M000067">set</a> method.
|
233
|
-
</p>
|
234
|
-
</div>
|
235
|
-
</div>
|
236
|
-
|
237
|
-
<div id="method-M000064" class="method-detail">
|
238
|
-
<a name="M000064"></a>
|
239
|
-
|
240
|
-
<div class="method-heading">
|
241
|
-
<a href="Point3.src/M000064.html" target="Code" class="method-signature"
|
242
|
-
onclick="popupCode('Point3.src/M000064.html');return false;">
|
243
|
-
<span class="method-name">origin</span><span class="method-args">()</span>
|
244
|
-
</a>
|
245
|
-
</div>
|
246
|
-
|
247
|
-
<div class="method-description">
|
248
|
-
<p>
|
249
|
-
Returns the <a href="Point3.html#M000064">origin</a> of 3D space, where x,
|
250
|
-
y, and z all have zero values.
|
251
|
-
</p>
|
252
|
-
</div>
|
253
|
-
</div>
|
254
|
-
|
255
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
256
|
-
|
257
|
-
<div id="method-M000090" class="method-detail">
|
258
|
-
<a name="M000090"></a>
|
259
|
-
|
260
|
-
<div class="method-heading">
|
261
|
-
<span class="method-name">*</span><span class="method-args">(x=1,y=1,z=1)</span>
|
262
|
-
</div>
|
263
|
-
|
264
|
-
<div class="method-description">
|
265
|
-
<p>
|
266
|
-
Alias for <a href="Point3.html#M000089">multiply</a>
|
267
|
-
</p>
|
268
|
-
</div>
|
269
|
-
</div>
|
270
|
-
|
271
|
-
<div id="method-M000084" class="method-detail">
|
272
|
-
<a name="M000084"></a>
|
273
|
-
|
274
|
-
<div class="method-heading">
|
275
|
-
<span class="method-name">+</span><span class="method-args">(x=0,y=0,z=0)</span>
|
276
|
-
</div>
|
277
|
-
|
278
|
-
<div class="method-description">
|
279
|
-
<p>
|
280
|
-
Alias for <a href="Point3.html#M000083">add</a>
|
281
|
-
</p>
|
282
|
-
</div>
|
283
|
-
</div>
|
284
|
-
|
285
|
-
<div id="method-M000087" class="method-detail">
|
286
|
-
<a name="M000087"></a>
|
287
|
-
|
288
|
-
<div class="method-heading">
|
289
|
-
<span class="method-name">-</span><span class="method-args">(x=0,y=0,z=0)</span>
|
290
|
-
</div>
|
291
|
-
|
292
|
-
<div class="method-description">
|
293
|
-
<p>
|
294
|
-
Alias for <a href="Point3.html#M000086">subtract</a>
|
295
|
-
</p>
|
296
|
-
</div>
|
297
|
-
</div>
|
298
|
-
|
299
|
-
<div id="method-M000068" class="method-detail">
|
300
|
-
<a name="M000068"></a>
|
301
|
-
|
302
|
-
<div class="method-heading">
|
303
|
-
<a href="Point3.src/M000068.html" target="Code" class="method-signature"
|
304
|
-
onclick="popupCode('Point3.src/M000068.html');return false;">
|
305
|
-
<span class="method-name">==</span><span class="method-args">(point3)</span>
|
306
|
-
</a>
|
307
|
-
</div>
|
308
|
-
|
309
|
-
<div class="method-description">
|
310
|
-
<p>
|
311
|
-
Returns true if the coordinates of the instance are equal to the
|
312
|
-
coordinates of the given point.
|
313
|
-
</p>
|
314
|
-
</div>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
<div id="method-M000070" class="method-detail">
|
318
|
-
<a name="M000070"></a>
|
319
|
-
|
320
|
-
<div class="method-heading">
|
321
|
-
<span class="method-name">=~</span><span class="method-args">(point3,epsilon=Numeric.epsilon)</span>
|
322
|
-
</div>
|
323
|
-
|
324
|
-
<div class="method-description">
|
325
|
-
<p>
|
326
|
-
Alias for approximately_equals?
|
327
|
-
</p>
|
328
|
-
</div>
|
329
|
-
</div>
|
330
|
-
|
331
|
-
<div id="method-M000083" class="method-detail">
|
332
|
-
<a name="M000083"></a>
|
333
|
-
|
334
|
-
<div class="method-heading">
|
335
|
-
<a href="Point3.src/M000083.html" target="Code" class="method-signature"
|
336
|
-
onclick="popupCode('Point3.src/M000083.html');return false;">
|
337
|
-
<span class="method-name">add</span><span class="method-args">(x=0,y=0,z=0)</span>
|
338
|
-
</a>
|
339
|
-
</div>
|
340
|
-
|
341
|
-
<div class="method-description">
|
342
|
-
<p>
|
343
|
-
Returns a <a href="Point3.html#M000065">new</a> <a
|
344
|
-
href="Point3.html">Point3</a> instance whose coordinates are the original
|
345
|
-
instance‘s with the given amounts added:
|
346
|
-
</p>
|
347
|
-
<ul>
|
348
|
-
<li>x is <a href="../Numeric.html">Numeric</a>, the arguments are added to the
|
349
|
-
coordinates.
|
350
|
-
|
351
|
-
</li>
|
352
|
-
<li>x responds like a <a href="Point3.html">Point3</a>, its cartesian
|
353
|
-
coordinates are added.
|
354
|
-
|
355
|
-
</li>
|
356
|
-
<li>otherwise a TypeError is raised.
|
357
|
-
|
358
|
-
</li>
|
359
|
-
</ul>
|
360
|
-
</div>
|
361
|
-
</div>
|
362
|
-
|
363
|
-
<div id="method-M000085" class="method-detail">
|
364
|
-
<a name="M000085"></a>
|
365
|
-
|
366
|
-
<div class="method-heading">
|
367
|
-
<a href="Point3.src/M000085.html" target="Code" class="method-signature"
|
368
|
-
onclick="popupCode('Point3.src/M000085.html');return false;">
|
369
|
-
<span class="method-name">add!</span><span class="method-args">(x=0,y=0,z=0)</span>
|
370
|
-
</a>
|
371
|
-
</div>
|
372
|
-
|
373
|
-
<div class="method-description">
|
374
|
-
<p>
|
375
|
-
Returns the modified instance with the arguments added.
|
376
|
-
</p>
|
377
|
-
</div>
|
378
|
-
</div>
|
379
|
-
|
380
|
-
<div id="method-M000069" class="method-detail">
|
381
|
-
<a name="M000069"></a>
|
382
|
-
|
383
|
-
<div class="method-heading">
|
384
|
-
<a href="Point3.src/M000069.html" target="Code" class="method-signature"
|
385
|
-
onclick="popupCode('Point3.src/M000069.html');return false;">
|
386
|
-
<span class="method-name">approximately_equals?</span><span class="method-args">(point3,epsilon=Numeric.epsilon)</span>
|
387
|
-
</a>
|
388
|
-
</div>
|
389
|
-
|
390
|
-
<div class="method-description">
|
391
|
-
<p>
|
392
|
-
Returns true if the coordinates of the instance are approximately equal to
|
393
|
-
the coordinates of the given point, each coordinate less than a distance
|
394
|
-
epsilon from the target.
|
395
|
-
</p>
|
396
|
-
</div>
|
397
|
-
</div>
|
398
|
-
|
399
|
-
<div id="method-M000075" class="method-detail">
|
400
|
-
<a name="M000075"></a>
|
401
|
-
|
402
|
-
<div class="method-heading">
|
403
|
-
<a href="Point3.src/M000075.html" target="Code" class="method-signature"
|
404
|
-
onclick="popupCode('Point3.src/M000075.html');return false;">
|
405
|
-
<span class="method-name">c_radius</span><span class="method-args">()</span>
|
406
|
-
</a>
|
407
|
-
</div>
|
408
|
-
|
409
|
-
<div class="method-description">
|
410
|
-
<p>
|
411
|
-
Returns the cylindrical radius coordinate of the instance.
|
412
|
-
</p>
|
413
|
-
</div>
|
414
|
-
</div>
|
415
|
-
|
416
|
-
<div id="method-M000096" class="method-detail">
|
417
|
-
<a name="M000096"></a>
|
418
|
-
|
419
|
-
<div class="method-heading">
|
420
|
-
<a href="Point3.src/M000096.html" target="Code" class="method-signature"
|
421
|
-
onclick="popupCode('Point3.src/M000096.html');return false;">
|
422
|
-
<span class="method-name">cross</span><span class="method-args">(x=1/sqrt3,y=1/sqrt3,z=1/sqrt3)</span>
|
423
|
-
</a>
|
424
|
-
</div>
|
425
|
-
|
426
|
-
<div class="method-description">
|
427
|
-
<p>
|
428
|
-
Returns a <a href="Point3.html#M000065">new</a> <a
|
429
|
-
href="Point3.html">Point3</a> instance that is the <a
|
430
|
-
href="Point3.html#M000096">cross</a> product of the given arguments treated
|
431
|
-
as vectors with endpoints at the <a href="Point3.html#M000064">origin</a>:
|
432
|
-
</p>
|
433
|
-
<ul>
|
434
|
-
<li>x is <a href="../Numeric.html">Numeric</a>, the <a
|
435
|
-
href="Point3.html#M000096">cross</a> product of the instance with the
|
436
|
-
arguments.
|
437
|
-
|
438
|
-
</li>
|
439
|
-
<li>x responds like a <a href="Point3.html">Point3</a>,
|
440
|
-
|
441
|
-
<ul>
|
442
|
-
<li>y is <a href="../Numeric.html">Numeric</a>, the <a
|
443
|
-
href="Point3.html#M000096">cross</a> product of the instance with x‘s
|
444
|
-
coordinates.
|
445
|
-
|
446
|
-
</li>
|
447
|
-
<li>y responds like a <a href="Point3.html">Point3</a>, the <a
|
448
|
-
href="Point3.html#M000096">cross</a> product of x with y.
|
449
|
-
|
450
|
-
</li>
|
451
|
-
</ul>
|
452
|
-
</li>
|
453
|
-
<li>otherwise a TypeError is raised.
|
454
|
-
|
455
|
-
</li>
|
456
|
-
</ul>
|
457
|
-
</div>
|
458
|
-
</div>
|
459
|
-
|
460
|
-
<div id="method-M000097" class="method-detail">
|
461
|
-
<a name="M000097"></a>
|
462
|
-
|
463
|
-
<div class="method-heading">
|
464
|
-
<a href="Point3.src/M000097.html" target="Code" class="method-signature"
|
465
|
-
onclick="popupCode('Point3.src/M000097.html');return false;">
|
466
|
-
<span class="method-name">cross!</span><span class="method-args">(x=1/sqrt3,y=1/sqrt3,z=1/sqrt3)</span>
|
467
|
-
</a>
|
468
|
-
</div>
|
469
|
-
|
470
|
-
<div class="method-description">
|
471
|
-
<p>
|
472
|
-
Returns the modified instance as the <a
|
473
|
-
href="Point3.html#M000096">cross</a> product.
|
474
|
-
</p>
|
475
|
-
</div>
|
476
|
-
</div>
|
477
|
-
|
478
|
-
<div id="method-M000078" class="method-detail">
|
479
|
-
<a name="M000078"></a>
|
480
|
-
|
481
|
-
<div class="method-heading">
|
482
|
-
<a href="Point3.src/M000078.html" target="Code" class="method-signature"
|
483
|
-
onclick="popupCode('Point3.src/M000078.html');return false;">
|
484
|
-
<span class="method-name">distance_to</span><span class="method-args">(point3)</span>
|
485
|
-
</a>
|
486
|
-
</div>
|
487
|
-
|
488
|
-
<div class="method-description">
|
489
|
-
<p>
|
490
|
-
Returns the 3D distance from the instance to <a
|
491
|
-
href="Point3.html#M000071">point3</a>.
|
492
|
-
</p>
|
493
|
-
</div>
|
494
|
-
</div>
|
495
|
-
|
496
|
-
<div id="method-M000080" class="method-detail">
|
497
|
-
<a name="M000080"></a>
|
498
|
-
|
499
|
-
<div class="method-heading">
|
500
|
-
<a href="Point3.src/M000080.html" target="Code" class="method-signature"
|
501
|
-
onclick="popupCode('Point3.src/M000080.html');return false;">
|
502
|
-
<span class="method-name">dot</span><span class="method-args">(point3)</span>
|
503
|
-
</a>
|
504
|
-
</div>
|
505
|
-
|
506
|
-
<div class="method-description">
|
507
|
-
<p>
|
508
|
-
Returns the <a href="Point3.html#M000080">dot</a> product of the vectors
|
509
|
-
represented by the instance and <a href="Point3.html#M000071">point3</a>,
|
510
|
-
with common endpoints at the <a href="Point3.html#M000064">origin</a>.
|
511
|
-
</p>
|
512
|
-
</div>
|
513
|
-
</div>
|
514
|
-
|
515
|
-
<div id="method-M000081" class="method-detail">
|
516
|
-
<a name="M000081"></a>
|
517
|
-
|
518
|
-
<div class="method-heading">
|
519
|
-
<a href="Point3.src/M000081.html" target="Code" class="method-signature"
|
520
|
-
onclick="popupCode('Point3.src/M000081.html');return false;">
|
521
|
-
<span class="method-name">mirror</span><span class="method-args">()</span>
|
522
|
-
</a>
|
523
|
-
</div>
|
524
|
-
|
525
|
-
<div class="method-description">
|
526
|
-
<p>
|
527
|
-
Returns a <a href="Point3.html#M000065">new</a> <a
|
528
|
-
href="Point3.html">Point3</a> instance whose coordinates are the original
|
529
|
-
instance‘s mirrored through the <a
|
530
|
-
href="Point3.html#M000064">origin</a>.
|
531
|
-
</p>
|
532
|
-
</div>
|
533
|
-
</div>
|
534
|
-
|
535
|
-
<div id="method-M000082" class="method-detail">
|
536
|
-
<a name="M000082"></a>
|
537
|
-
|
538
|
-
<div class="method-heading">
|
539
|
-
<a href="Point3.src/M000082.html" target="Code" class="method-signature"
|
540
|
-
onclick="popupCode('Point3.src/M000082.html');return false;">
|
541
|
-
<span class="method-name">mirror!</span><span class="method-args">()</span>
|
542
|
-
</a>
|
543
|
-
</div>
|
544
|
-
|
545
|
-
<div class="method-description">
|
546
|
-
<p>
|
547
|
-
Returns the modified instance whose coordinates have been mirrored through
|
548
|
-
the <a href="Point3.html#M000064">origin</a>.
|
549
|
-
</p>
|
550
|
-
</div>
|
551
|
-
</div>
|
552
|
-
|
553
|
-
<div id="method-M000079" class="method-detail">
|
554
|
-
<a name="M000079"></a>
|
555
|
-
|
556
|
-
<div class="method-heading">
|
557
|
-
<a href="Point3.src/M000079.html" target="Code" class="method-signature"
|
558
|
-
onclick="popupCode('Point3.src/M000079.html');return false;">
|
559
|
-
<span class="method-name">modulus</span><span class="method-args">()</span>
|
560
|
-
</a>
|
561
|
-
</div>
|
562
|
-
|
563
|
-
<div class="method-description">
|
564
|
-
<p>
|
565
|
-
Returns the 3D distance from the instance to the <a
|
566
|
-
href="Point3.html#M000064">origin</a>.
|
567
|
-
</p>
|
568
|
-
</div>
|
569
|
-
</div>
|
570
|
-
|
571
|
-
<div id="method-M000089" class="method-detail">
|
572
|
-
<a name="M000089"></a>
|
573
|
-
|
574
|
-
<div class="method-heading">
|
575
|
-
<a href="Point3.src/M000089.html" target="Code" class="method-signature"
|
576
|
-
onclick="popupCode('Point3.src/M000089.html');return false;">
|
577
|
-
<span class="method-name">multiply</span><span class="method-args">(x=1,y=1,z=1)</span>
|
578
|
-
</a>
|
579
|
-
</div>
|
580
|
-
|
581
|
-
<div class="method-description">
|
582
|
-
<p>
|
583
|
-
Returns a <a href="Point3.html#M000065">new</a> <a
|
584
|
-
href="Point3.html">Point3</a> instance whose coordinates are the original
|
585
|
-
instance‘s multiplied by the given amounts:
|
586
|
-
</p>
|
587
|
-
<ul>
|
588
|
-
<li>x is <a href="../Numeric.html">Numeric</a>, the coordinates are multiplied
|
589
|
-
by the arguments.
|
590
|
-
|
591
|
-
</li>
|
592
|
-
<li>x responds like a <a href="Point3.html">Point3</a>, the instance‘s
|
593
|
-
coordinates are multiplied by x‘s coordinates.
|
594
|
-
|
595
|
-
</li>
|
596
|
-
<li>otherwise a TypeError is raised.
|
597
|
-
|
598
|
-
</li>
|
599
|
-
</ul>
|
600
|
-
</div>
|
601
|
-
</div>
|
602
|
-
|
603
|
-
<div id="method-M000091" class="method-detail">
|
604
|
-
<a name="M000091"></a>
|
605
|
-
|
606
|
-
<div class="method-heading">
|
607
|
-
<a href="Point3.src/M000091.html" target="Code" class="method-signature"
|
608
|
-
onclick="popupCode('Point3.src/M000091.html');return false;">
|
609
|
-
<span class="method-name">multiply!</span><span class="method-args">(x=1,y=1,z=1)</span>
|
610
|
-
</a>
|
611
|
-
</div>
|
612
|
-
|
613
|
-
<div class="method-description">
|
614
|
-
<p>
|
615
|
-
Returns the modified instance as multiplied by the arguments.
|
616
|
-
</p>
|
617
|
-
</div>
|
618
|
-
</div>
|
619
|
-
|
620
|
-
<div id="method-M000077" class="method-detail">
|
621
|
-
<a name="M000077"></a>
|
622
|
-
|
623
|
-
<div class="method-heading">
|
624
|
-
<a href="Point3.src/M000077.html" target="Code" class="method-signature"
|
625
|
-
onclick="popupCode('Point3.src/M000077.html');return false;">
|
626
|
-
<span class="method-name">phi</span><span class="method-args">()</span>
|
627
|
-
</a>
|
628
|
-
</div>
|
629
|
-
|
630
|
-
<div class="method-description">
|
631
|
-
<p>
|
632
|
-
Returns the spherical <a href="Point3.html#M000077">phi</a> coordinate of
|
633
|
-
the instance.
|
634
|
-
</p>
|
635
|
-
</div>
|
636
|
-
</div>
|
637
|
-
|
638
|
-
<div id="method-M000071" class="method-detail">
|
639
|
-
<a name="M000071"></a>
|
640
|
-
|
641
|
-
<div class="method-heading">
|
642
|
-
<a href="Point3.src/M000071.html" target="Code" class="method-signature"
|
643
|
-
onclick="popupCode('Point3.src/M000071.html');return false;">
|
644
|
-
<span class="method-name">point3</span><span class="method-args">(x=self.x,y=self.y,z=self.z)</span>
|
645
|
-
</a>
|
646
|
-
</div>
|
647
|
-
|
648
|
-
<div class="method-description">
|
649
|
-
<p>
|
650
|
-
Returns a copy of <a href="Point3.html#M000071">point3</a> with the given
|
651
|
-
cartesian coordinates:
|
652
|
-
</p>
|
653
|
-
<ul>
|
654
|
-
<li>x is <a href="../Numeric.html">Numeric</a>, the arguments are copied as the
|
655
|
-
coordinates.
|
656
|
-
|
657
|
-
</li>
|
658
|
-
<li>x responds like a <a href="Point3.html">Point3</a>, its coordinates are
|
659
|
-
copied.
|
660
|
-
|
661
|
-
</li>
|
662
|
-
<li>otherwise a TypeError is raised.
|
663
|
-
|
664
|
-
</li>
|
665
|
-
</ul>
|
666
|
-
</div>
|
667
|
-
</div>
|
668
|
-
|
669
|
-
<div id="method-M000073" class="method-detail">
|
670
|
-
<a name="M000073"></a>
|
671
|
-
|
672
|
-
<div class="method-heading">
|
673
|
-
<a href="Point3.src/M000073.html" target="Code" class="method-signature"
|
674
|
-
onclick="popupCode('Point3.src/M000073.html');return false;">
|
675
|
-
<span class="method-name">point3c</span><span class="method-args">(point3c=nil,point3=self)</span>
|
676
|
-
</a>
|
677
|
-
</div>
|
678
|
-
|
679
|
-
<div class="method-description">
|
680
|
-
<p>
|
681
|
-
Returns a 3D point in cylindrical coordinates, filling <a
|
682
|
-
href="Point3.html#M000073">point3c</a> if given, and copied from <a
|
683
|
-
href="Point3.html#M000071">point3</a>.
|
684
|
-
</p>
|
685
|
-
</div>
|
686
|
-
</div>
|
687
|
-
|
688
|
-
<div id="method-M000072" class="method-detail">
|
689
|
-
<a name="M000072"></a>
|
690
|
-
|
691
|
-
<div class="method-heading">
|
692
|
-
<a href="Point3.src/M000072.html" target="Code" class="method-signature"
|
693
|
-
onclick="popupCode('Point3.src/M000072.html');return false;">
|
694
|
-
<span class="method-name">point3s</span><span class="method-args">(point3s=nil,point3=self)</span>
|
695
|
-
</a>
|
696
|
-
</div>
|
697
|
-
|
698
|
-
<div class="method-description">
|
699
|
-
<p>
|
700
|
-
Returns a 3D point in spherical coordinates, filling <a
|
701
|
-
href="Point3.html#M000072">point3s</a> if given, and copied from <a
|
702
|
-
href="Point3.html#M000071">point3</a>.
|
703
|
-
</p>
|
704
|
-
</div>
|
705
|
-
</div>
|
706
|
-
|
707
|
-
<div id="method-M000074" class="method-detail">
|
708
|
-
<a name="M000074"></a>
|
709
|
-
|
710
|
-
<div class="method-heading">
|
711
|
-
<a href="Point3.src/M000074.html" target="Code" class="method-signature"
|
712
|
-
onclick="popupCode('Point3.src/M000074.html');return false;">
|
713
|
-
<span class="method-name">s_radius</span><span class="method-args">()</span>
|
714
|
-
</a>
|
715
|
-
</div>
|
716
|
-
|
717
|
-
<div class="method-description">
|
718
|
-
<p>
|
719
|
-
Returns the spherical radius coordinate of the instance.
|
720
|
-
</p>
|
721
|
-
</div>
|
722
|
-
</div>
|
723
|
-
|
724
|
-
<div id="method-M000092" class="method-detail">
|
725
|
-
<a name="M000092"></a>
|
726
|
-
|
727
|
-
<div class="method-heading">
|
728
|
-
<a href="Point3.src/M000092.html" target="Code" class="method-signature"
|
729
|
-
onclick="popupCode('Point3.src/M000092.html');return false;">
|
730
|
-
<span class="method-name">scale</span><span class="method-args">(scalar=1)</span>
|
731
|
-
</a>
|
732
|
-
</div>
|
733
|
-
|
734
|
-
<div class="method-description">
|
735
|
-
<p>
|
736
|
-
Returns a <a href="Point3.html#M000065">new</a> <a
|
737
|
-
href="Point3.html">Point3</a> instance whose coordinates are the original
|
738
|
-
instance‘s multiplied by the scalar.
|
739
|
-
</p>
|
740
|
-
<ul>
|
741
|
-
<li>scalar is <a href="../Numeric.html">Numeric</a>, the arguments are
|
742
|
-
multiplied by the coordinates.
|
743
|
-
|
744
|
-
</li>
|
745
|
-
<li>x responds like a <a href="Point3.html">Point3</a>, the instance is
|
746
|
-
multiplied by the scalar.
|
747
|
-
|
748
|
-
</li>
|
749
|
-
<li>otherwise a TypeError is raised.
|
750
|
-
|
751
|
-
</li>
|
752
|
-
</ul>
|
753
|
-
</div>
|
754
|
-
</div>
|
755
|
-
|
756
|
-
<div id="method-M000093" class="method-detail">
|
757
|
-
<a name="M000093"></a>
|
758
|
-
|
759
|
-
<div class="method-heading">
|
760
|
-
<a href="Point3.src/M000093.html" target="Code" class="method-signature"
|
761
|
-
onclick="popupCode('Point3.src/M000093.html');return false;">
|
762
|
-
<span class="method-name">scale!</span><span class="method-args">(scalar=1)</span>
|
763
|
-
</a>
|
764
|
-
</div>
|
765
|
-
|
766
|
-
<div class="method-description">
|
767
|
-
<p>
|
768
|
-
Returns the modified instance as multiplied by the scalar.
|
769
|
-
</p>
|
770
|
-
</div>
|
771
|
-
</div>
|
772
|
-
|
773
|
-
<div id="method-M000067" class="method-detail">
|
774
|
-
<a name="M000067"></a>
|
775
|
-
|
776
|
-
<div class="method-heading">
|
777
|
-
<a href="Point3.src/M000067.html" target="Code" class="method-signature"
|
778
|
-
onclick="popupCode('Point3.src/M000067.html');return false;">
|
779
|
-
<span class="method-name">set</span><span class="method-args">(x=0, y=0, z=0)</span>
|
780
|
-
</a>
|
781
|
-
</div>
|
782
|
-
|
783
|
-
<div class="method-description">
|
784
|
-
<p>
|
785
|
-
Sets the coordinate values of the instance. When
|
786
|
-
</p>
|
787
|
-
<ul>
|
788
|
-
<li>x is <a href="../Numeric.html">Numeric</a>, the arguments are interpretted
|
789
|
-
as coordinates.
|
790
|
-
|
791
|
-
</li>
|
792
|
-
<li>x responds like a <a href="Point3.html">Point3</a>, its cartesian
|
793
|
-
coordinates are assigned.
|
794
|
-
|
795
|
-
</li>
|
796
|
-
<li>otherwise a TypeError is raised.
|
797
|
-
|
798
|
-
</li>
|
799
|
-
</ul>
|
800
|
-
<p>
|
801
|
-
The modified instance is returned.
|
802
|
-
</p>
|
803
|
-
</div>
|
804
|
-
</div>
|
805
|
-
|
806
|
-
<div id="method-M000086" class="method-detail">
|
807
|
-
<a name="M000086"></a>
|
808
|
-
|
809
|
-
<div class="method-heading">
|
810
|
-
<a href="Point3.src/M000086.html" target="Code" class="method-signature"
|
811
|
-
onclick="popupCode('Point3.src/M000086.html');return false;">
|
812
|
-
<span class="method-name">subtract</span><span class="method-args">(x=0,y=0,z=0)</span>
|
813
|
-
</a>
|
814
|
-
</div>
|
815
|
-
|
816
|
-
<div class="method-description">
|
817
|
-
<p>
|
818
|
-
Returns a <a href="Point3.html#M000065">new</a> <a
|
819
|
-
href="Point3.html">Point3</a> instance whose coordinates are the original
|
820
|
-
instance‘s with the given amounts subtracted:
|
821
|
-
</p>
|
822
|
-
<ul>
|
823
|
-
<li>x is <a href="../Numeric.html">Numeric</a>, the arguments are subtracted
|
824
|
-
from the coordinates.
|
825
|
-
|
826
|
-
</li>
|
827
|
-
<li>x responds like a <a href="Point3.html">Point3</a>, its cartesian
|
828
|
-
coordinates are subtracted.
|
829
|
-
|
830
|
-
</li>
|
831
|
-
<li>otherwise a TypeError is raised.
|
832
|
-
|
833
|
-
</li>
|
834
|
-
</ul>
|
835
|
-
</div>
|
836
|
-
</div>
|
837
|
-
|
838
|
-
<div id="method-M000088" class="method-detail">
|
839
|
-
<a name="M000088"></a>
|
840
|
-
|
841
|
-
<div class="method-heading">
|
842
|
-
<a href="Point3.src/M000088.html" target="Code" class="method-signature"
|
843
|
-
onclick="popupCode('Point3.src/M000088.html');return false;">
|
844
|
-
<span class="method-name">subtract!</span><span class="method-args">(x=0,y=0,z=0)</span>
|
845
|
-
</a>
|
846
|
-
</div>
|
847
|
-
|
848
|
-
<div class="method-description">
|
849
|
-
<p>
|
850
|
-
Returns the modified instance with the arguments subtracted.
|
851
|
-
</p>
|
852
|
-
</div>
|
853
|
-
</div>
|
854
|
-
|
855
|
-
<div id="method-M000076" class="method-detail">
|
856
|
-
<a name="M000076"></a>
|
857
|
-
|
858
|
-
<div class="method-heading">
|
859
|
-
<a href="Point3.src/M000076.html" target="Code" class="method-signature"
|
860
|
-
onclick="popupCode('Point3.src/M000076.html');return false;">
|
861
|
-
<span class="method-name">theta</span><span class="method-args">()</span>
|
862
|
-
</a>
|
863
|
-
</div>
|
864
|
-
|
865
|
-
<div class="method-description">
|
866
|
-
<p>
|
867
|
-
Returns the spherical/cylindrical <a href="Point3.html#M000076">theta</a>
|
868
|
-
coordinate of the instance.
|
869
|
-
</p>
|
870
|
-
</div>
|
871
|
-
</div>
|
872
|
-
|
873
|
-
<div id="method-M000098" class="method-detail">
|
874
|
-
<a name="M000098"></a>
|
875
|
-
|
876
|
-
<div class="method-heading">
|
877
|
-
<a href="Point3.src/M000098.html" target="Code" class="method-signature"
|
878
|
-
onclick="popupCode('Point3.src/M000098.html');return false;">
|
879
|
-
<span class="method-name">to_along</span><span class="method-args">(e, d, normalize=true)</span>
|
880
|
-
</a>
|
881
|
-
</div>
|
882
|
-
|
883
|
-
<div class="method-description">
|
884
|
-
<pre>
|
885
|
-
Returns a new Point3 that is a distance d from the instance along the
|
886
|
-
line to the Point3 e. If normalized is true, the d argument specifies
|
887
|
-
the fraction of the distance from the instance (being 0) to e (being 1).
|
888
|
-
</pre>
|
889
|
-
<p>
|
890
|
-
If normalize is false, the d argument specifies an absolute distance.
|
891
|
-
</p>
|
892
|
-
</div>
|
893
|
-
</div>
|
894
|
-
|
895
|
-
<div id="method-M000066" class="method-detail">
|
896
|
-
<a name="M000066"></a>
|
897
|
-
|
898
|
-
<div class="method-heading">
|
899
|
-
<a href="Point3.src/M000066.html" target="Code" class="method-signature"
|
900
|
-
onclick="popupCode('Point3.src/M000066.html');return false;">
|
901
|
-
<span class="method-name">to_s</span><span class="method-args">()</span>
|
902
|
-
</a>
|
903
|
-
</div>
|
904
|
-
|
905
|
-
<div class="method-description">
|
906
|
-
<p>
|
907
|
-
Returns a string representation of the instance.
|
908
|
-
</p>
|
909
|
-
</div>
|
910
|
-
</div>
|
911
|
-
|
912
|
-
<div id="method-M000094" class="method-detail">
|
913
|
-
<a name="M000094"></a>
|
914
|
-
|
915
|
-
<div class="method-heading">
|
916
|
-
<a href="Point3.src/M000094.html" target="Code" class="method-signature"
|
917
|
-
onclick="popupCode('Point3.src/M000094.html');return false;">
|
918
|
-
<span class="method-name">unit</span><span class="method-args">(x=1,y=1,z=1)</span>
|
919
|
-
</a>
|
920
|
-
</div>
|
921
|
-
|
922
|
-
<div class="method-description">
|
923
|
-
<p>
|
924
|
-
Returns a <a href="Point3.html#M000065">new</a> <a
|
925
|
-
href="Point3.html">Point3</a> instance representing the <a
|
926
|
-
href="Point3.html#M000094">unit</a> vector (with the same direction as the
|
927
|
-
original instance, but whose length is 1.)
|
928
|
-
</p>
|
929
|
-
</div>
|
930
|
-
</div>
|
931
|
-
|
932
|
-
<div id="method-M000095" class="method-detail">
|
933
|
-
<a name="M000095"></a>
|
934
|
-
|
935
|
-
<div class="method-heading">
|
936
|
-
<a href="Point3.src/M000095.html" target="Code" class="method-signature"
|
937
|
-
onclick="popupCode('Point3.src/M000095.html');return false;">
|
938
|
-
<span class="method-name">unit!</span><span class="method-args">(x=1,y=1,z=1)</span>
|
939
|
-
</a>
|
940
|
-
</div>
|
941
|
-
|
942
|
-
<div class="method-description">
|
943
|
-
<p>
|
944
|
-
Returns the modified instance as the <a href="Point3.html#M000094">unit</a>
|
945
|
-
vector.
|
946
|
-
</p>
|
947
|
-
</div>
|
948
|
-
</div>
|
949
|
-
|
950
|
-
|
951
|
-
</div>
|
952
|
-
|
953
|
-
|
954
|
-
</div>
|
955
|
-
|
956
|
-
|
957
|
-
<div id="validator-badges">
|
958
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
959
|
-
</div>
|
960
|
-
|
961
|
-
</body>
|
962
|
-
</html>
|