Quarks-help: use Quark-openHelpFile
[supercollider.git] / Help / Math / Polar.html
blob951c76951d4b9587d2c5ea0886109d2923068985
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="949.43">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
13 span.s1 {font: 18.0px Helvetica}
14 span.s2 {color: #0000ff}
15 span.Apple-tab-span {white-space:pre}
16 </style>
17 </head>
18 <body>
19 <p class="p1"><span class="s1"><b>Polar <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>polar coordinates</b></p>
20 <p class="p2"><br></p>
21 <p class="p1"><b>superclass: </b><a href="Number.html"><span class="s2">Number</span></a></p>
22 <p class="p2"><br></p>
23 <p class="p1">Represents polar coordinates.</p>
24 <p class="p2"><br></p>
25 <p class="p3"><b>Creation</b></p>
26 <p class="p2"><br></p>
27 <p class="p1"><b>new(rho, theta)</b></p>
28 <p class="p2"><br></p>
29 <p class="p1">Create a new polar coordinate with the given radius, rho, and angle in radians, theta.</p>
30 <p class="p2"><br></p>
31 <p class="p2"><br></p>
32 <p class="p3"><b>Math</b></p>
33 <p class="p2"><br></p>
34 <p class="p1"><b>+ <span class="Apple-converted-space">  </span>- <span class="Apple-converted-space">  </span>* <span class="Apple-converted-space">  </span>/</b></p>
35 <p class="p2"><br></p>
36 <p class="p1">The math operations of addition, subtraction, multiplication and division are accomplished by</p>
37 <p class="p1">first converting to complex numbers.</p>
38 <p class="p2"><br></p>
39 <p class="p1"><b>scale(aNumber)</b></p>
40 <p class="p2"><br></p>
41 <p class="p1">Scale the radius by some value.</p>
42 <p class="p2"><br></p>
43 <p class="p1"><b>rotate(aNumber)</b></p>
44 <p class="p2"><br></p>
45 <p class="p1">Rotate the angle by some value.</p>
46 <p class="p2"><br></p>
47 <p class="p1"><b>neg</b></p>
48 <p class="p2"><br></p>
49 <p class="p1">Rotate by pi.</p>
50 <p class="p2"><br></p>
51 <p class="p2"><br></p>
52 <p class="p2"><br></p>
53 <p class="p2"><br></p>
54 <p class="p3"><b>Conversion</b></p>
55 <p class="p2"><br></p>
56 <p class="p1"><b>magnitude</b></p>
57 <p class="p2"><br></p>
58 <p class="p1">Answer the radius.</p>
59 <p class="p2"><br></p>
60 <p class="p1"><b>angle</b></p>
61 <p class="p2"><br></p>
62 <p class="p1">Answer the angle in radians</p>
63 <p class="p2"><br></p>
64 <p class="p1"><b>phase</b></p>
65 <p class="p2"><br></p>
66 <p class="p1">Answer the angle in radians</p>
67 <p class="p2"><br></p>
68 <p class="p1"><b>real</b></p>
69 <p class="p2"><br></p>
70 <p class="p1">Answer the real part.</p>
71 <p class="p2"><br></p>
72 <p class="p1"><b>imag</b></p>
73 <p class="p2"><br></p>
74 <p class="p1">Answer the imaginary part.</p>
75 <p class="p2"><br></p>
76 <p class="p1"><b>asComplex</b></p>
77 <p class="p2"><br></p>
78 <p class="p1">Convert to Complex</p>
79 <p class="p2"><br></p>
80 <p class="p1"><b>asPoint</b></p>
81 <p class="p2"><br></p>
82 <p class="p1">Convert to Point</p>
83 <p class="p2"><br></p>
84 </body>
85 </html>