Constructor
new Scratch3GdxForBlocks(runtime)
Construct a set of GDX-FOR blocks.
Parameters:
Name | Type | Description |
---|---|---|
runtime |
Runtime | the Scratch 3.0 runtime. |
Members
(static) EXTENSION_ID
(static) EXTENSION_NAME
runtime :Runtime
The Scratch 3.0 runtime.
Type:
Methods
getInfo() → {object}
Returns:
metadata for this extension and its blocks.
- Type
- object
magnitude(x, y, z) → {number}
Parameters:
Name | Type | Description |
---|---|---|
x |
number | x axis vector |
y |
number | y axis vector |
z |
number | z axis vector |
Returns:
- the magnitude of a three dimension vector.
- Type
- number