From 380c7e00208c1294c76b35853265a85d89efee6d Mon Sep 17 00:00:00 2001 From: bi0qaw Date: Sat, 25 Nov 2017 16:25:04 +0100 Subject: [PATCH] Updated Rotate (markdown) --- Rotate.md | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Rotate.md b/Rotate.md index 1e54b91..dff9f4d 100644 --- a/Rotate.md +++ b/Rotate.md @@ -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