Difference between revisions of "Template:Direction"
Jump to navigation
Jump to search
m |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><table | + | <includeonly><table class="wikitable"> |
<tr> | <tr> | ||
<th>Compass</th> | <th>Compass</th> | ||
− | {{# | + | {{#switch:{{lc:{{{1|}}}}} |
− | + | |deg=<th> Degrees </th> | |
+ | |rad=<th> Radians </th> | ||
+ | |<th> Degrees </th><th> Radians </th>}}</tr> | ||
<tr> | <tr> | ||
<td>North</td> | <td>North</td> | ||
− | {{# | + | {{#switch:{{lc:{{{1|}}}}} |
− | + | |deg=<td> 0° </td> | |
+ | |rad=<td> 0 </td> | ||
+ | |<td> 0° </td><td> 0 </td>}}</tr> | ||
<tr> | <tr> | ||
<td>West</td> | <td>West</td> | ||
− | {{# | + | {{#switch:{{lc:{{{1|}}}}} |
− | {{# | + | |deg=<td> 90° </td> |
+ | |rad=<td> π/2 ≈ {{#expr: pi / 2 round 2 }} </td> | ||
+ | |<td> 90° </td><td> π/2 ≈ {{#expr: pi / 2 round 2 }} </td>}}</tr> | ||
<tr> | <tr> | ||
<td>South</td> | <td>South</td> | ||
− | {{# | + | {{#switch:{{lc:{{{1|}}}}} |
− | {{# | + | |deg=<td> 180° </td> |
− | <tr><td>East</td> | + | |rad=<td> π ≈ {{#expr: pi round 2 }} </td> |
− | {{# | + | |<td> 180° </td><td> π ≈ {{#expr: pi round 2 }} </td>}}</tr> |
− | {{# | + | <tr> |
+ | <td>East</td> | ||
+ | {{#switch:{{lc:{{{1|}}}}} | ||
+ | |deg=<td> 270° </td> | ||
+ | |rad=<td> 3π/2 ≈ {{#expr: 3 * pi / 2 round 2 }} </td> | ||
+ | |<td> 270° </td><td> 3π/2 ≈ {{#expr: 3 * pi / 2 round 2 }} </td>}}</tr> | ||
</table></includeonly><noinclude> | </table></includeonly><noinclude> | ||
Degrees only: | Degrees only: | ||
− | <pre>{{direction|deg | + | <pre>{{direction|deg}}</pre> |
− | {{direction|deg | + | {{direction|deg}} |
Radians only: | Radians only: | ||
− | <pre>{{direction|rad | + | <pre>{{direction|rad}}</pre> |
− | {{direction|rad | + | {{direction|rad}} |
Both: | Both: | ||
− | <pre>{{direction | + | <pre>{{direction}}</pre> |
− | {{direction | + | {{direction}} |
</noinclude> | </noinclude> |
Latest revision as of 20:27, 10 November 2016
Degrees only:
{{direction|deg}}
Compass | Degrees |
---|---|
North | 0° |
West | 90° |
South | 180° |
East | 270° |
Radians only:
{{direction|rad}}
Compass | Radians |
---|---|
North | 0 |
West | π/2 ≈ 1.57 |
South | π ≈ 3.14 |
East | 3π/2 ≈ 4.71 |
Both:
{{direction}}
Compass | Degrees | Radians |
---|---|---|
North | 0° | 0 |
West | 90° | π/2 ≈ 1.57 |
South | 180° | π ≈ 3.14 |
East | 270° | 3π/2 ≈ 4.71 |