vector.min

vector.min (...vector) -> vector

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

Example

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

< Back to vector