dec

operator fun Vector2.dec(): Vector2

Decrements both vector values - subtracts 1 from x and y. To avoid creating a new vector instance, use Vector2.minusAssign instead.

Return

a new Vector2 instance with the operation result.


operator fun Vector3.dec(): Vector3

Decrements all vector values - subtracts 1 from x, y and z. To avoid creating a new vector instance, use Vector3.minusAssign instead.

Return

a new Vector3 instance with the operation result.


operator fun Vector4.dec(): Vector4

Decrements all vector values - subtracts 1 from X, Y, Z and W components. To avoid creating a new vector instance, use Vector4.minusAssign instead.

Return

a new Vector4 instance with the operation result.