throw new IllegalArgumentException("Given connection points are not connected!");
this.path = new double[path.length * 2 + 4];
Point component1ConnectionPoint = component1.getWireArrayConnectionPoint(component1ConnectionIndex);
this.path[0] = component1Pos.x + component1ConnectionPoint.x;
this.path[1] = component1Pos.y + component1ConnectionPoint.y;
throw new IllegalArgumentException("Given connection points are not connected!");
this.path = new double[path.length * 2 + 4];
Point component1ConnectionPoint = component1.getWireArrayConnectionPoint(component1ConnectionIndex);
this.path[0] = component1Pos.x + component1ConnectionPoint.x;
this.path[1] = component1Pos.y + component1ConnectionPoint.y;