Hi, So I got this code in which I calculate the intersection of 2 lines, the algorithm works but there is an error I can't solve.

Error:

```
error: expected unqualified-id before '[' token
```

Here is the code:

```
double[] Intersect(double[2] ClineP1, double[2] ClineP2, double[2] OlineP1, double[2] OlineP2)
//the line above is where the error pops up
{
//Line1
double A1 = ClineP2[1] - ClineP1[1];
double B1 = ClineP2[0] - ClineP1[0];
double C1 = A1*ClineP1[0] + B1*ClineP1[1];
//Line2
double A2 = OlineP2[1] - OlineP1[1];
double B2 = OlineP2[0] - OlineP1[0];
double C2 = A2 * OlineP1[0] + B2 * OlineP1[1];
double delta = A1*B2 - A2*B1;
if(delta == 0 || ) {
Serial.println("Lines are parallel");}
else{
double x = (B2*C1 - B1*C2)/delta;
double y = (A1*C2 - A2*C1)/delta;
double[2] xy = {x, y};
return xy;
}
}
```

Thank you in advance!