operator + method

Coordinates operator +(
  1. Coordinates other
)

Adds two coordinates.

Implementation

Coordinates operator +(Coordinates other) =>
	Coordinates(x: x + other.x, y: y + other.y, z: z + other.z);