round

fun round(): Vector2

Rounds each component to the nearest integer (halves toward +infinity, as JS Math.round).

Return

A reference to this vector.