length returns the length of the vector, i.e. sqrt(x[0]^2 + x[1]^2 + ... ).
x Type: float
Type: float
JSON
{
"Type": "length(float)",
"Name": "length(float)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "float"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
x Type: vec2
Type: float
JSON
{
"Type": "length(vec2)",
"Name": "length(vec2)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec2"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
x Type: vec3
Type: float
JSON
{
"Type": "length(vec3)",
"Name": "length(vec3)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec3"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
x Type: vec4
Type: float
JSON
{
"Type": "length(vec4)",
"Name": "length(vec4)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec4"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}