Updated Rotate (markdown)

bi0qaw 2017-11-25 16:25:04 +01:00
parent b173a278a7
commit 380c7e0020

@ -1,11 +1,12 @@
## Vectors
## Vectors
```
%vectors% rotated around (x|y|z)-axis by %number%
%vectors% rotated around %vector% by %number%
```
## Locations
## Locations
```
%locations% rotated around (x|y|z)-axis at %location% by %number%
@ -14,6 +15,19 @@
Rotates a list of locations or vectors around an axis by an angle in degree.
## Table showing the effect of the axis vector on the rotation
Rotation|Direction Vector
---|---
clockwise rotation around x-axis|1, 0, 0
clockwise rotation around y-axis|0, 1, 0
clockwise rotation around z-axis|0, 0, 0
anti-clockwise rotation around x-axis|-1, 0, 0
anti-clockwise rotation around y-axis|0, -1, 0
anti-clockwise rotation around z-axis|0, 0, -1
***
Obligatory example:
```
set {_line::*} to line with length 1 and density 5
@ -44,14 +58,5 @@ set {_rotated::*} to {_line::*} rotated around z-axis by 180
***
## Table showing the effect of the axis vector on the rotation
Rotation|Direction Vector
---|---
clockwise rotation around x-axis|1, 0, 0
clockwise rotation around y-axis|0, 1, 0
clockwise rotation around z-axis|0, 0, 0
anti-clockwise rotation around x-axis|-1, 0, 0
anti-clockwise rotation around y-axis|0, -1, 0
anti-clockwise rotation around z-axis|0, 0, -1