plus

operator fun plus(other: Position3D): Position3D

Returns a new Position3D which is the sum of x, y and z in both Position3Ds. so Position3D(x = 1, y = 1, z = 1).plus(Position3D(x = 2, y = 2, z = 2)) will be Position3D(x = 3, y = 3, z = 3).

Sources

(source)
Link copied to clipboard