If I understand well, your plane constitutes the x and z-axis, and you want to rotate the y axis?
But then you’ll have to compare it to a reference direction, and I suppose I have to imagine it as if it were an axis perpendicular to the earth’s horizon. To calculate the vector then, I need the angle between the vertical and the rotated plane and use some math.
PVector x = new PVector(1, 0);
PVector y = new PVector(0, 1);
float angle = PVector.angleBetween(x, y);
println(degrees(angle)); // 90 degrees