Most of the methods in Mathematics have many overloads for different combinations of types. For example, math.abs()
takes vector arguments, not just scalars, e.g. math.abs(new int3(5, -7, -1))
returns new int3(5, 7, 1)
. This cheat sheet does not exhaustively demonstrate all of the overloads. Consult the API reference for the full list.
In this page: