inc

operator fun Vector2.inc(): Vector2

Increments both vector values - adds 1 to x and y. To avoid creating a new vector instance, use Vector2.plusAssign instead.

Return

a new Vector2 instance with the operation result.


operator fun Vector3.inc(): Vector3

Increments all vector values - adds 1 to x, y and z. To avoid creating a new vector instance, use Vector3.plusAssign instead.

Return

a new Vector3 instance with the operation result.


operator fun Vector4.inc(): Vector4

Increments all vector values - adds 1 to X, Y, Z and W components. To avoid creating a new vector instance, use Vector4.plusAssign instead.

Return

a new Vector4 instance with the operation result.