Scale: Difference between revisions

From Fancade Wiki
 
(Mention how its analogous to some other blocks)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:Scale1.png]]
{{Block
|image=Scale.png
|type=s
|folder=Math
|input1={{Port|v|Vec}}
|output1={{Port|n|Num}}
|output2={{Port|v|Vec * Num}}
}}


Multiplies each [[vector]] component by the input [[number]].
Multiplies each [[vector]] component by the input [[number]].


[[File:Screenshot_2022-02-16-17-08-27-04_6c69499164362a0dbe2f1dfe7c62199a.jpg]]
Can function as [[multiply]], [[divide]] or [[negate]] for vectors if the input number is <code>X</code>, one divided by <code>X</code> or -1 respectively, where <code>X</code> is the number you want to multiply/divide by.


{{Image|Scale_example.jpg|Example}}
== Related ==
* [[Multiply]]
* [[Rotate]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 14:32, 30 November 2025

Scale
Scale.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Vec
Outputs Num
Vec * Num

Multiplies each vector component by the input number.

Can function as multiply, divide or negate for vectors if the input number is X, one divided by X or -1 respectively, where X is the number you want to multiply/divide by.


Example

Related