Skip to content

Latest commit

 

History

History
148 lines (114 loc) · 1.57 KB

File metadata and controls

148 lines (114 loc) · 1.57 KB

length

length returns the length of the vector, i.e. sqrt(x[0]^2 + x[1]^2 + ... ).

length(float)

Parameter

x Type: float

Return Value

Type: float

JSON
{
  "Type": "length(float)",
  "Name": "length(float)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "float"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "float"
    }
  ]
}

length(vec2)

Parameter

x Type: vec2

Return Value

Type: float

JSON
{
  "Type": "length(vec2)",
  "Name": "length(vec2)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "vec2"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "float"
    }
  ]
}

length(vec3)

Parameter

x Type: vec3

Return Value

Type: float

JSON
{
  "Type": "length(vec3)",
  "Name": "length(vec3)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "vec3"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "float"
    }
  ]
}

length(vec4)

Parameter

x Type: vec4

Return Value

Type: float

JSON
{
  "Type": "length(vec4)",
  "Name": "length(vec4)",
  "Category": 1,
  "InputPins": [
    {
      "Connection": null,
      "Id": "x",
      "Type": "vec4"
    }
  ],
  "OutputPins": [
    {
      "Id": "",
      "Type": "float"
    }
  ]
}