Skip to content

Latest commit

 

History

History
149 lines (114 loc) · 1.62 KB

normalize.md

File metadata and controls

149 lines (114 loc) · 1.62 KB

normalize

normalize returns a vector with the same direction as its parameter, v, but with length 1.

normalize(float)

Parameter

x Type: float

Return Value

Type: float

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

normalize(vec2)

Parameter

x Type: vec2

Return Value

Type: vec2

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

normalize(vec3)

Parameter

x Type: vec3

Return Value

Type: vec3

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

normalize(vec4)

Parameter

x Type: vec4

Return Value

Type: vec4

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