Vector2:operator*(f)

Version added: before 9.5

Multiplies a vector by a number, returning the result as a new vector

ArgumentTypeDescriptionDefaultVer
frealA number to multiply the vector by< 9.5

Return type (Vector2): the original vector, multiplied by the number "num"

Multiplies a vector by a number, returning the result as a new vector. Example: v2 = v * 3.

Note that (e.g.) v2 = 3 * v is not a valid syntax and results in an error message