You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="Normal">When internet access is missing or poor, you may find it useful to run locally, independent of the internet. Here are the steps required.</p>
<pclass="Normal"><strong>* Install the Google App Engine SDK for Python.</strong><br/>
42
-
At <ahref="http://developers.google.com/appengine/downloads" target="_blank">developers.google.com/appengine/downloads</a>, download the package for your platform. If using Linux, unpack to a folder whose name will probably be google_appengine.</p>
42
+
At <ahref="http://developers.google.com/appengine/downloads" target="_blank">developers.google.com/appengine/downloads</a>, download the package for your platform. Chose Standard environment Python, then scroll down and click "Download and install the original App Engine SDK for Python". If using Linux, unpack to a folder whose name will probably be google_appengine.</p>
43
43
<pclass="Normal"><strong>* Download the GlowScript source files.</strong><br/>
44
44
At <ahref="https://github.com/BruceSherwood/glowscript" target="_blank">github.com/BruceSherwood/glowscript</a>, click on "Download ZIP". After the download, unpack the zip file into a new folder named glowscript. On Linux, place this folder parallel to the google_appengine folder.</p>
45
45
<pclass="Normal"><strong>* On Windows and Mac</strong>, the Google App Engine installer includes an app "Google APP Engine Launcher" which simplifies launching GlowScript.<br/>
class="attribute">v2.y</span> is 20, <spanclass="attribute">v2.z</span> is 30 </p>
54
54
<pclass="Normal"> It is okay to make a vector from a vector: <span
55
55
class="attribute">vec(v2)</span> is still <spanclass="attribute">vec(10,20,30)</span>. This is a convenient way to make a separate copy of a vector.</p>
56
-
<pclass="Normal">Currently it is not possible to use <spanclass="attribute"><strong>+=</strong></span>,<strong><spanclass="attribute">-=</span></strong>, <spanclass="attribute"><strong>*=</strong></span><strong>, </strong>or <strong><spanclass="attribute">/=</span></strong> with vectors.</p>
class="attribute">v2.y</span> is 20, <spanclass="attribute">v2.z</span> is 30</p>
61
61
<pclass="Normal"> It is okay to make a vector from a vector: <span
62
62
class="attribute">vector(v2)</span> is still <spanclass="attribute">vector(10,20,30)</span>. This is a convenient way to make a separate copy of a vector.</p>
63
-
<pclass="Normal">Currently it is not possible to use <spanclass="attribute"><strong>+=</strong></span>,<strong><spanclass="attribute">-=</span></strong>, <spanclass="attribute"><strong>*=</strong></span><strong>, </strong>or <strong><spanclass="attribute">/=</span></strong> with vectors.</p>
A/|A|, a unit vector in the direction of the vector; an alternative to A.norm(), based on the fact that unit vectors are customarily written in the form <strong>ĉ</strong>, with a "hat" over the vector<br/>
73
+
<br/>
74
+
For convenience, <spanclass="attribute">norm(vec(0,0,0))</span> or<spanclass="attribute"> vec(0,0,0).hat</span> is calculated to be <spanclass="attribute">vec(0,0,0)</span>. <spanclass="attribute"></span><br/>
74
75
<br/>
75
76
<strong>dot(A,B) = A.dot(B)</strong> = A dot B, the scalar dot product between two vectors<br/>
<pclass="program">norm(A) # A/|A|, normalized; magnitude of 1<br/>
105
106
norm(vector(1,1,1)) = vector(1,1,1)/sqrt(3)</p>
106
107
<pclass="Normal">You can also write <spanclass="attribute">v1.norm()</span><span
107
-
class="attribute"></span> or <spanclass="attribute">v1.hat</span>. For convenience, <spanclass="attribute">norm(vec(0,0,0))</span> is calculated to be <spanclass="attribute">vec(0,0,0)</span>. <spanclass="attribute"></span></p>
108
+
class="attribute"></span> or <spanclass="attribute">v1.hat</span>. </p>
108
109
<pclass="Normal">You can change the direction of a vector without changing its magnitude:</p>
109
110
<pclass="program"> v2.hat = v1 # changes the direction of v2 to that of v1<br/>
110
111
# but not the magnitude of v2</p>
0 commit comments