times

operator fun times(other: Vector2): Vector2

Multiplies this Vector2 instance by another Vector2 instance.

Return

A new Vector2 instance representing the result of multiplication.

Parameters

other

The Vector2 instance to multiply by.


operator fun times(scalar: Float): Vector2

Multiplies this Vector2 instance by a scalar.

Return

A new Vector2 instance representing the result of multiplication.

Parameters

scalar

The scalar to multiply by.