minus

operator fun minus(other: Position3D): Position3D

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

Sources

(source)
Link copied to clipboard