zyps 0.5.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +18 -0
- data/bin/zyps +13 -9
- data/bin/zyps_demo +3 -0
- data/bin/zyps_server +262 -0
- data/doc/classes/Zyps.html +161 -0
- data/doc/classes/Zyps/AccelerateAction.html +200 -0
- data/doc/classes/Zyps/AccelerateAction.src/M000020.html +19 -0
- data/doc/classes/Zyps/AccelerateAction.src/M000021.html +19 -0
- data/doc/classes/Zyps/AccelerateAction.src/M000022.html +18 -0
- data/doc/classes/Zyps/Accelerator.html +181 -0
- data/doc/classes/Zyps/Accelerator.src/M000044.html +19 -0
- data/doc/classes/Zyps/Accelerator.src/M000045.html +18 -0
- data/doc/classes/Zyps/Action.html +217 -0
- data/doc/classes/Zyps/Action.src/M000014.html +18 -0
- data/doc/classes/Zyps/Action.src/M000015.html +18 -0
- data/doc/classes/Zyps/Action.src/M000016.html +17 -0
- data/doc/classes/Zyps/Action.src/M000017.html +18 -0
- data/doc/classes/Zyps/AgeCondition.html +181 -0
- data/doc/classes/Zyps/AgeCondition.src/M000058.html +18 -0
- data/doc/classes/Zyps/AgeCondition.src/M000059.html +18 -0
- data/doc/classes/Zyps/ApproachAction.html +207 -0
- data/doc/classes/Zyps/ApproachAction.src/M000074.html +19 -0
- data/doc/classes/Zyps/ApproachAction.src/M000075.html +19 -0
- data/doc/classes/Zyps/ApproachAction.src/M000076.html +38 -0
- data/doc/classes/Zyps/Behavior.html +206 -0
- data/doc/classes/Zyps/Behavior.src/M000012.html +20 -0
- data/doc/classes/Zyps/Behavior.src/M000013.html +31 -0
- data/doc/classes/Zyps/BlendAction.html +181 -0
- data/doc/classes/Zyps/BlendAction.src/M000066.html +18 -0
- data/doc/classes/Zyps/BlendAction.src/M000067.html +18 -0
- data/doc/classes/Zyps/Clock.html +180 -0
- data/doc/classes/Zyps/Clock.src/M000069.html +18 -0
- data/doc/classes/Zyps/Clock.src/M000070.html +21 -0
- data/doc/classes/Zyps/Clock.src/M000071.html +18 -0
- data/doc/classes/Zyps/CollisionCondition.html +148 -0
- data/doc/classes/Zyps/CollisionCondition.src/M000083.html +18 -0
- data/doc/classes/Zyps/Color.html +299 -0
- data/doc/classes/Zyps/Color.src/M000038.html +18 -0
- data/doc/classes/Zyps/Color.src/M000039.html +16 -0
- data/doc/classes/Zyps/Color.src/M000040.html +16 -0
- data/doc/classes/Zyps/Color.src/M000041.html +16 -0
- data/doc/classes/Zyps/Color.src/M000042.html +18 -0
- data/doc/classes/Zyps/Color.src/M000043.html +22 -0
- data/doc/classes/Zyps/Condition.html +118 -0
- data/doc/classes/Zyps/Creature.html +190 -0
- data/doc/classes/Zyps/Creature.src/M000025.html +19 -0
- data/doc/classes/Zyps/Creature.src/M000026.html +18 -0
- data/doc/classes/Zyps/DestroyAction.html +181 -0
- data/doc/classes/Zyps/DestroyAction.src/M000054.html +18 -0
- data/doc/classes/Zyps/DestroyAction.src/M000055.html +20 -0
- data/doc/classes/Zyps/EatAction.html +149 -0
- data/doc/classes/Zyps/EatAction.src/M000068.html +21 -0
- data/doc/classes/Zyps/Enclosure.html +206 -0
- data/doc/classes/Zyps/Enclosure.src/M000010.html +18 -0
- data/doc/classes/Zyps/Enclosure.src/M000011.html +31 -0
- data/doc/classes/Zyps/Environment.html +203 -0
- data/doc/classes/Zyps/Environment.src/M000081.html +19 -0
- data/doc/classes/Zyps/Environment.src/M000082.html +67 -0
- data/doc/classes/Zyps/EnvironmentalFactor.html +118 -0
- data/doc/classes/Zyps/FaceAction.html +148 -0
- data/doc/classes/Zyps/FaceAction.src/M000080.html +18 -0
- data/doc/classes/Zyps/FleeAction.html +207 -0
- data/doc/classes/Zyps/FleeAction.src/M000084.html +19 -0
- data/doc/classes/Zyps/FleeAction.src/M000085.html +19 -0
- data/doc/classes/Zyps/FleeAction.src/M000086.html +38 -0
- data/doc/classes/Zyps/Friction.html +181 -0
- data/doc/classes/Zyps/Friction.src/M000072.html +19 -0
- data/doc/classes/Zyps/Friction.src/M000073.html +18 -0
- data/doc/classes/Zyps/GameObject.html +282 -0
- data/doc/classes/Zyps/GameObject.src/M000060.html +19 -0
- data/doc/classes/Zyps/GameObject.src/M000061.html +16 -0
- data/doc/classes/Zyps/GameObject.src/M000062.html +19 -0
- data/doc/classes/Zyps/GameObject.src/M000063.html +16 -0
- data/doc/classes/Zyps/GameObject.src/M000064.html +16 -0
- data/doc/classes/Zyps/Gravity.html +145 -0
- data/doc/classes/Zyps/Gravity.src/M000065.html +16 -0
- data/doc/classes/Zyps/Location.html +167 -0
- data/doc/classes/Zyps/Location.src/M000037.html +18 -0
- data/doc/classes/Zyps/NoMatchException.html +111 -0
- data/doc/classes/Zyps/PopulationLimit.html +183 -0
- data/doc/classes/Zyps/PopulationLimit.src/M000027.html +19 -0
- data/doc/classes/Zyps/PopulationLimit.src/M000028.html +20 -0
- data/doc/classes/Zyps/ProximityCondition.html +182 -0
- data/doc/classes/Zyps/ProximityCondition.src/M000056.html +18 -0
- data/doc/classes/Zyps/ProximityCondition.src/M000057.html +18 -0
- data/doc/classes/Zyps/PullAction.html +199 -0
- data/doc/classes/Zyps/PullAction.src/M000046.html +19 -0
- data/doc/classes/Zyps/PullAction.src/M000047.html +19 -0
- data/doc/classes/Zyps/PullAction.src/M000048.html +23 -0
- data/doc/classes/Zyps/PushAction.html +199 -0
- data/doc/classes/Zyps/PushAction.src/M000049.html +19 -0
- data/doc/classes/Zyps/PushAction.src/M000050.html +19 -0
- data/doc/classes/Zyps/PushAction.src/M000051.html +23 -0
- data/doc/classes/Zyps/SpeedLimit.html +181 -0
- data/doc/classes/Zyps/SpeedLimit.src/M000023.html +18 -0
- data/doc/classes/Zyps/SpeedLimit.src/M000024.html +18 -0
- data/doc/classes/Zyps/TagAction.html +181 -0
- data/doc/classes/Zyps/TagAction.src/M000052.html +18 -0
- data/doc/classes/Zyps/TagAction.src/M000053.html +18 -0
- data/doc/classes/Zyps/TagCondition.html +181 -0
- data/doc/classes/Zyps/TagCondition.src/M000018.html +18 -0
- data/doc/classes/Zyps/TagCondition.src/M000019.html +18 -0
- data/doc/classes/Zyps/TrailsView.html +209 -0
- data/doc/classes/Zyps/TrailsView.src/M000008.html +40 -0
- data/doc/classes/Zyps/TrailsView.src/M000009.html +78 -0
- data/doc/classes/Zyps/TurnAction.html +200 -0
- data/doc/classes/Zyps/TurnAction.src/M000077.html +19 -0
- data/doc/classes/Zyps/TurnAction.src/M000078.html +19 -0
- data/doc/classes/Zyps/TurnAction.src/M000079.html +18 -0
- data/doc/classes/Zyps/Utility.html +251 -0
- data/doc/classes/Zyps/Utility.src/M000001.html +26 -0
- data/doc/classes/Zyps/Utility.src/M000002.html +22 -0
- data/doc/classes/Zyps/Utility.src/M000003.html +18 -0
- data/doc/classes/Zyps/Utility.src/M000004.html +21 -0
- data/doc/classes/Zyps/Utility.src/M000005.html +25 -0
- data/doc/classes/Zyps/Utility.src/M000006.html +21 -0
- data/doc/classes/Zyps/Utility.src/M000007.html +21 -0
- data/doc/classes/Zyps/Vector.html +281 -0
- data/doc/classes/Zyps/Vector.src/M000029.html +19 -0
- data/doc/classes/Zyps/Vector.src/M000030.html +16 -0
- data/doc/classes/Zyps/Vector.src/M000031.html +21 -0
- data/doc/classes/Zyps/Vector.src/M000032.html +16 -0
- data/doc/classes/Zyps/Vector.src/M000033.html +18 -0
- data/doc/classes/Zyps/Vector.src/M000034.html +16 -0
- data/doc/classes/Zyps/Vector.src/M000035.html +18 -0
- data/doc/classes/Zyps/Vector.src/M000036.html +25 -0
- data/doc/created.rid +1 -0
- data/doc/files/COPYING_LESSER_txt.html +311 -0
- data/doc/files/COPYING_txt.html +1003 -0
- data/doc/files/README_txt.html +236 -0
- data/doc/files/lib/zyps/actions_rb.html +134 -0
- data/doc/files/lib/zyps/conditions_rb.html +134 -0
- data/doc/files/lib/zyps/environmental_factors_rb.html +134 -0
- data/doc/files/lib/zyps/views/trails_rb.html +134 -0
- data/doc/files/lib/zyps_rb.html +134 -0
- data/doc/fr_class_index.html +62 -0
- data/doc/fr_file_index.html +34 -0
- data/doc/fr_method_index.html +112 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/zyps.rb +40 -9
- data/lib/zyps/actions.rb +8 -1
- data/lib/zyps/conditions.rb +6 -0
- data/lib/zyps/environmental_factors.rb +74 -0
- data/lib/zyps/views/trails.rb +6 -0
- data/test/test_zyps.rb +3 -0
- data/test/zyps/test_actions.rb +3 -0
- data/test/zyps/test_conditions.rb +3 -0
- data/test/zyps/test_environmental_factors.rb +90 -7
- metadata +185 -9
@@ -0,0 +1,19 @@
|
|
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 (Zyps::Vector)</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/zyps.rb, line 344</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">speed</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">pitch</span> = <span class="ruby-value">0</span>)
|
15
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">speed</span> = <span class="ruby-identifier">speed</span>
|
16
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pitch</span> = <span class="ruby-identifier">pitch</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
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>pitch (Zyps::Vector)</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/zyps.rb, line 350</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pitch</span>; <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">to_degrees</span>(<span class="ruby-ivar">@pitch</span>); <span class="ruby-keyword kw">end</span></pre>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
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>pitch= (Zyps::Vector)</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/zyps.rb, line 351</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pitch=</span>(<span class="ruby-identifier">degrees</span>)
|
15
|
+
<span class="ruby-comment cmt">#Constrain degrees to 0 to 360.</span>
|
16
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">degrees</span> <span class="ruby-operator">%</span> <span class="ruby-value">360</span>
|
17
|
+
<span class="ruby-comment cmt">#Store as radians internally.</span>
|
18
|
+
<span class="ruby-ivar">@pitch</span> = <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">to_radians</span>(<span class="ruby-identifier">value</span>)
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
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>x (Zyps::Vector)</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/zyps.rb, line 359</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">x</span>; <span class="ruby-ivar">@speed</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">*</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-ivar">@pitch</span>); <span class="ruby-keyword kw">end</span></pre>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>x= (Zyps::Vector)</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/zyps.rb, line 360</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">x=</span>(<span class="ruby-identifier">value</span>)
|
15
|
+
<span class="ruby-ivar">@speed</span>, <span class="ruby-ivar">@pitch</span> = <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(<span class="ruby-identifier">value</span> <span class="ruby-operator">**</span> <span class="ruby-value">2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">y</span> <span class="ruby-operator">**</span> <span class="ruby-value">2</span>), <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan</span>(<span class="ruby-identifier">y</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">value</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
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>y (Zyps::Vector)</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/zyps.rb, line 364</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">y</span>; <span class="ruby-ivar">@speed</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">*</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-ivar">@pitch</span>); <span class="ruby-keyword kw">end</span></pre>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>y= (Zyps::Vector)</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/zyps.rb, line 365</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">y=</span>(<span class="ruby-identifier">value</span>)
|
15
|
+
<span class="ruby-ivar">@speed</span>, <span class="ruby-ivar">@pitch</span> = <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(<span class="ruby-identifier">x</span> <span class="ruby-operator">**</span> <span class="ruby-value">2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">**</span> <span class="ruby-value">2</span>), <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan</span>(<span class="ruby-identifier">value</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">x</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
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>+ (Zyps::Vector)</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/zyps.rb, line 371</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">vector2</span>)
|
15
|
+
<span class="ruby-comment cmt">#Get the x and y components of the new vector.</span>
|
16
|
+
<span class="ruby-identifier">new_x</span> = (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">x</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">vector2</span>.<span class="ruby-identifier">x</span>)
|
17
|
+
<span class="ruby-identifier">new_y</span> = (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">y</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">vector2</span>.<span class="ruby-identifier">y</span>)
|
18
|
+
<span class="ruby-identifier">new_length_squared</span> = <span class="ruby-identifier">new_x</span> <span class="ruby-operator">**</span> <span class="ruby-value">2</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">new_y</span> <span class="ruby-operator">**</span> <span class="ruby-value">2</span>
|
19
|
+
<span class="ruby-identifier">new_length</span> = (<span class="ruby-identifier">new_length_squared</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>(<span class="ruby-identifier">new_length_squared</span>))
|
20
|
+
<span class="ruby-identifier">new_angle</span> = (<span class="ruby-identifier">new_x</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">to_degrees</span>(<span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>(<span class="ruby-identifier">new_y</span>, <span class="ruby-identifier">new_x</span>)))
|
21
|
+
<span class="ruby-comment cmt">#Calculate speed and angle of new vector with components.</span>
|
22
|
+
<span class="ruby-constant">Vector</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">new_length</span>, <span class="ruby-identifier">new_angle</span>)
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</html>
|
data/doc/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Wed Oct 24 20:01:26 -0700 2007
|
@@ -0,0 +1,311 @@
|
|
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>File: COPYING.LESSER.txt</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="fileHeader">
|
50
|
+
<h1>COPYING.LESSER.txt</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>COPYING.LESSER.txt
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Mon Aug 06 20:52:08 -0700 2007</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<pre>
|
73
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
74
|
+
Version 3, 29 June 2007
|
75
|
+
|
76
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
77
|
+
Everyone is permitted to copy and distribute verbatim copies
|
78
|
+
of this license document, but changing it is not allowed.
|
79
|
+
|
80
|
+
This version of the GNU Lesser General Public License incorporates
|
81
|
+
</pre>
|
82
|
+
<p>
|
83
|
+
the terms and conditions of version 3 of the GNU General Public License,
|
84
|
+
supplemented by the additional permissions listed below.
|
85
|
+
</p>
|
86
|
+
<pre>
|
87
|
+
0. Additional Definitions.
|
88
|
+
|
89
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
90
|
+
</pre>
|
91
|
+
<p>
|
92
|
+
General Public License, and the "GNU GPL" refers to version 3 of
|
93
|
+
the GNU General Public License.
|
94
|
+
</p>
|
95
|
+
<pre>
|
96
|
+
"The Library" refers to a covered work governed by this License,
|
97
|
+
</pre>
|
98
|
+
<p>
|
99
|
+
other than an Application or a Combined Work as defined below.
|
100
|
+
</p>
|
101
|
+
<pre>
|
102
|
+
An "Application" is any work that makes use of an interface provided
|
103
|
+
</pre>
|
104
|
+
<p>
|
105
|
+
by the Library, but which is not otherwise based on the Library. Defining a
|
106
|
+
subclass of a class defined by the Library is deemed a mode of using an
|
107
|
+
interface provided by the Library.
|
108
|
+
</p>
|
109
|
+
<pre>
|
110
|
+
A "Combined Work" is a work produced by combining or linking an
|
111
|
+
</pre>
|
112
|
+
<p>
|
113
|
+
Application with the Library. The particular version of the Library with
|
114
|
+
which the Combined Work was made is also called the "Linked
|
115
|
+
Version".
|
116
|
+
</p>
|
117
|
+
<pre>
|
118
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
119
|
+
</pre>
|
120
|
+
<p>
|
121
|
+
Corresponding Source for the Combined Work, excluding any source code for
|
122
|
+
portions of the Combined Work that, considered in isolation, are based on
|
123
|
+
the Application, and not on the Linked Version.
|
124
|
+
</p>
|
125
|
+
<pre>
|
126
|
+
The "Corresponding Application Code" for a Combined Work means the
|
127
|
+
</pre>
|
128
|
+
<p>
|
129
|
+
object code and/or source code for the Application, including any data and
|
130
|
+
utility programs needed for reproducing the Combined Work from the
|
131
|
+
Application, but excluding the System Libraries of the Combined Work.
|
132
|
+
</p>
|
133
|
+
<pre>
|
134
|
+
1. Exception to Section 3 of the GNU GPL.
|
135
|
+
|
136
|
+
You may convey a covered work under sections 3 and 4 of this License
|
137
|
+
</pre>
|
138
|
+
<p>
|
139
|
+
without being bound by section 3 of the GNU GPL.
|
140
|
+
</p>
|
141
|
+
<pre>
|
142
|
+
2. Conveying Modified Versions.
|
143
|
+
|
144
|
+
If you modify a copy of the Library, and, in your modifications, a
|
145
|
+
</pre>
|
146
|
+
<p>
|
147
|
+
facility refers to a function or data to be supplied by an Application that
|
148
|
+
uses the facility (other than as an argument passed when the facility is
|
149
|
+
invoked), then you may convey a copy of the modified version:
|
150
|
+
</p>
|
151
|
+
<pre>
|
152
|
+
a) under this License, provided that you make a good faith effort to
|
153
|
+
ensure that, in the event an Application does not supply the
|
154
|
+
function or data, the facility still operates, and performs
|
155
|
+
whatever part of its purpose remains meaningful, or
|
156
|
+
|
157
|
+
b) under the GNU GPL, with none of the additional permissions of
|
158
|
+
this License applicable to that copy.
|
159
|
+
|
160
|
+
3. Object Code Incorporating Material from Library Header Files.
|
161
|
+
|
162
|
+
The object code form of an Application may incorporate material from
|
163
|
+
</pre>
|
164
|
+
<p>
|
165
|
+
a header file that is part of the Library. You may convey such object code
|
166
|
+
under terms of your choice, provided that, if the incorporated material is
|
167
|
+
not limited to numerical parameters, data structure layouts and accessors,
|
168
|
+
or small macros, inline functions and templates (ten or fewer lines in
|
169
|
+
length), you do both of the following:
|
170
|
+
</p>
|
171
|
+
<pre>
|
172
|
+
a) Give prominent notice with each copy of the object code that the
|
173
|
+
Library is used in it and that the Library and its use are
|
174
|
+
covered by this License.
|
175
|
+
|
176
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
177
|
+
document.
|
178
|
+
|
179
|
+
4. Combined Works.
|
180
|
+
|
181
|
+
You may convey a Combined Work under terms of your choice that,
|
182
|
+
</pre>
|
183
|
+
<p>
|
184
|
+
taken together, effectively do not restrict modification of the portions of
|
185
|
+
the Library contained in the Combined Work and reverse engineering for
|
186
|
+
debugging such modifications, if you also do each of the following:
|
187
|
+
</p>
|
188
|
+
<pre>
|
189
|
+
a) Give prominent notice with each copy of the Combined Work that
|
190
|
+
the Library is used in it and that the Library and its use are
|
191
|
+
covered by this License.
|
192
|
+
|
193
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
194
|
+
document.
|
195
|
+
|
196
|
+
c) For a Combined Work that displays copyright notices during
|
197
|
+
execution, include the copyright notice for the Library among
|
198
|
+
these notices, as well as a reference directing the user to the
|
199
|
+
copies of the GNU GPL and this license document.
|
200
|
+
|
201
|
+
d) Do one of the following:
|
202
|
+
|
203
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
204
|
+
License, and the Corresponding Application Code in a form
|
205
|
+
suitable for, and under terms that permit, the user to
|
206
|
+
recombine or relink the Application with a modified version of
|
207
|
+
the Linked Version to produce a modified Combined Work, in the
|
208
|
+
manner specified by section 6 of the GNU GPL for conveying
|
209
|
+
Corresponding Source.
|
210
|
+
|
211
|
+
1) Use a suitable shared library mechanism for linking with the
|
212
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
213
|
+
a copy of the Library already present on the user's computer
|
214
|
+
system, and (b) will operate properly with a modified version
|
215
|
+
of the Library that is interface-compatible with the Linked
|
216
|
+
Version.
|
217
|
+
|
218
|
+
e) Provide Installation Information, but only if you would otherwise
|
219
|
+
be required to provide such information under section 6 of the
|
220
|
+
GNU GPL, and only to the extent that such information is
|
221
|
+
necessary to install and execute a modified version of the
|
222
|
+
Combined Work produced by recombining or relinking the
|
223
|
+
Application with a modified version of the Linked Version. (If
|
224
|
+
you use option 4d0, the Installation Information must accompany
|
225
|
+
the Minimal Corresponding Source and Corresponding Application
|
226
|
+
Code. If you use option 4d1, you must provide the Installation
|
227
|
+
Information in the manner specified by section 6 of the GNU GPL
|
228
|
+
for conveying Corresponding Source.)
|
229
|
+
|
230
|
+
5. Combined Libraries.
|
231
|
+
|
232
|
+
You may place library facilities that are a work based on the
|
233
|
+
</pre>
|
234
|
+
<p>
|
235
|
+
Library side by side in a single library together with other library
|
236
|
+
facilities that are not Applications and are not covered by this License,
|
237
|
+
and convey such a combined library under terms of your choice, if you do
|
238
|
+
both of the following:
|
239
|
+
</p>
|
240
|
+
<pre>
|
241
|
+
a) Accompany the combined library with a copy of the same work based
|
242
|
+
on the Library, uncombined with any other library facilities,
|
243
|
+
conveyed under the terms of this License.
|
244
|
+
|
245
|
+
b) Give prominent notice with the combined library that part of it
|
246
|
+
is a work based on the Library, and explaining where to find the
|
247
|
+
accompanying uncombined form of the same work.
|
248
|
+
|
249
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
250
|
+
|
251
|
+
The Free Software Foundation may publish revised and/or new versions
|
252
|
+
</pre>
|
253
|
+
<p>
|
254
|
+
of the GNU Lesser General Public License from time to time. Such new
|
255
|
+
versions will be similar in spirit to the present version, but may differ
|
256
|
+
in detail to address new problems or concerns.
|
257
|
+
</p>
|
258
|
+
<pre>
|
259
|
+
Each version is given a distinguishing version number. If the
|
260
|
+
</pre>
|
261
|
+
<p>
|
262
|
+
Library as you received it specifies that a certain numbered version of the
|
263
|
+
GNU Lesser General Public License "or any later version" applies
|
264
|
+
to it, you have the option of following the terms and conditions either of
|
265
|
+
that published version or of any later version published by the Free
|
266
|
+
Software Foundation. If the Library as you received it does not specify a
|
267
|
+
version number of the GNU Lesser General Public License, you may choose any
|
268
|
+
version of the GNU Lesser General Public License ever published by the Free
|
269
|
+
Software Foundation.
|
270
|
+
</p>
|
271
|
+
<pre>
|
272
|
+
If the Library as you received it specifies that a proxy can decide
|
273
|
+
</pre>
|
274
|
+
<p>
|
275
|
+
whether future versions of the GNU Lesser General Public License shall
|
276
|
+
apply, that proxy‘s public statement of acceptance of any version is
|
277
|
+
permanent authorization for you to choose that version for the Library.
|
278
|
+
</p>
|
279
|
+
|
280
|
+
</div>
|
281
|
+
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
<!-- if includes -->
|
290
|
+
|
291
|
+
<div id="section">
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
<!-- if method_list -->
|
301
|
+
|
302
|
+
|
303
|
+
</div>
|
304
|
+
|
305
|
+
|
306
|
+
<div id="validator-badges">
|
307
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
308
|
+
</div>
|
309
|
+
|
310
|
+
</body>
|
311
|
+
</html>
|