Skip to content

Latest commit

 

History

History
341 lines (264 loc) · 3.89 KB

File metadata and controls

341 lines (264 loc) · 3.89 KB

atan

atan returns either the angle whose

trigonometric arctangent is y \over x or

y_over_x, depending on which overload is

invoked. In the first overload, the signs of y and x are

used to determine the quadrant that the angle lies in. The value

returned by atan in this case is in the

range [-π,π]. The result is undefined if x = 0.

For the second overload, atan returns the

angle whose tangent is y_over_x. The

value returned in this case is in the range

[-{π \over 2 },{π \over 2}].

atan(float)

Parameter

y_over_x Type: float

Return Value

Type: float

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

atan(vec2)

Parameter

y_over_x Type: vec2

Return Value

Type: vec2

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

atan(vec3)

Parameter

y_over_x Type: vec3

Return Value

Type: vec3

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

atan(vec4)

Parameter

y_over_x Type: vec4

Return Value

Type: vec4

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

atan(float,float)

Parameters

y Type: float x Type: float

Return Value

Type: float

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

atan(vec2,vec2)

Parameters

y Type: vec2 x Type: vec2

Return Value

Type: vec2

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

atan(vec3,vec3)

Parameters

y Type: vec3 x Type: vec3

Return Value

Type: vec3

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

atan(vec4,vec4)

Parameters

y Type: vec4 x Type: vec4

Return Value

Type: vec4

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