unaryPlus

operator fun Vector.unaryPlus(): Vector

Unary plus operator that adds 1.0 to all components.

Example:

val v = Vector(5.0, 3.0, 2.0)
val result = +v // Vector(6.0, 4.0, 3.0)

Return

A new Vector with 1.0 added to all components