Scale: Difference between revisions
Nikitaivanov (talk | contribs) (Created page with "File:Scale1.png Multiplies each vector component by the input number. File:Screenshot_2022-02-16-17-08-27-04_6c69499164362a0dbe2f1dfe7c62199a.jpg Category:Blocks ") |
(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: | ||
{{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]]. | ||
[[ | 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
| Type | Script block |
| Collider | None |
| Folder | Math |
| 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.
