dec

operator fun dec(): Vector3

Overloads the decrement operator -- to decrement each component of the current Vector3 instance.

This method creates and returns a new Vector3 instance where the x, y, and z components are the values of the corresponding components of the current instance minus 1. The component values of the original instance remain unchanged.

Return

A new Vector3 instance with x, y, and z components decremented by 1 compared to the original instance.