Vector3.setRound() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
value1?
Yes
value2?
Yes
value3?
Yes

Returns

Not applicable.

Description

Set all values to equivalent closest integers. Numbers that are exactly half-integers will be rounded to closest even integer. The numbers used are based on what arguments are provided:
  • None: Current constructor properties will be rounded.
  • A single number: Will be used for all values.
  • A single array: First three positions will be used for x, y and z values, respectively.
  • Vector3: Respective properties will be used.
  • Three numbers: Will be used for x, y and z values, respectively.

⚠️ **GitHub.com Fallback** ⚠️