From 84ccd11b378ad1bab98c88e1f85ef167ad0a067a Mon Sep 17 00:00:00 2001 From: bi0qaw Date: Sat, 25 Nov 2017 16:55:10 +0100 Subject: [PATCH] Updated Scale (markdown) --- Scale.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Scale.md b/Scale.md index aa05e73..b45f7ba 100644 --- a/Scale.md +++ b/Scale.md @@ -33,5 +33,32 @@ Note that the scaling factor just multiplies all the scalings applied by the dir *** +Example: +``` +set {_circle::*} to circle with radius 1 and density 5 +set {_scaled::*} to {_circle::*} scaled by 2 +``` +With locations: +``` +set {_circle::*} to circle at player with radius 1 and density 5 +set {_scaled::*} to {_circle::*} scaled at player by 2 +``` +This example scales the original circle by a factor of 2, which makes the radius of the circle 2 times larger. An image of the result (green particles = original, flame particles = scaled) +![](https://i.imgur.com/Cq1SyzM.png) +*** + +We can use the direction vector to create an ellipse: +``` +set {_circle::*} to circle with radius 1 and density 5 +set {_scaled::*} to {_circle::*} scaled by 1 in direction of vector 2, 1, 1 +``` +With locations: +``` +set {_circle::*} to circle at player with radius 1 and density 5 +set {_scaled::*} to {_circle::*} scaled at player by 1 in direction of vector 2, 1, 1 +``` +The result is an ellipse that has a two times larger radius in the x-direction than in the z-direction. Image with the green particles showing the original circle and the flame particles showing the ellipse: + +![](https://i.imgur.com/e6W2mhm.png)