vector.max

vector.max(...vector) : vector

Applies math.max to the corresponding components of the input vectors.

Example

vector.max(vector(1,1,1))
{
  "def": "func",
  "name": "max",
  "energy": 0,
  "pure": true,
  "sleep": 0,
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "vector"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "vecs",
          "desc": "",
          "type": [
            "vector"
          ],
          "variadic": true,
          "optional": false
        }
      ]
    }
  ],
  "desc": "Applies `math.max` to the corresponding components of the input vectors.",
  "link": "https://luau.org/library#bit32-library#:~:text=function%20bit32.max"
}

< Back to vector