As seen from a point in the wind farm, computes the angle to another point in that farm.
GetAngle(x1, y1, x2, y2)
must be a single value. Provide the x location of the first turbine.
x
must be a single value. Provide the y location of the first turbine.
y
must be a single value. Provide the x location of the second turbine.
must be a single value. Provide the y location of the second turbine.
GetAngle returns a single number between 0 and 360. If both points are identical, the return value is 0.
GetAngle
From point 2's point of view, computes the angle to point 1.
Use JensenAngle to compute the wake cone and with it, use IsInWake to see if another turbine B is in turbine A's wake.
JensenAngle
IsInWake
# NOT RUN { GetAngle(0.2, 0.2, 0.1, 0.1) ## Looking from point (0.1, 0.1) at point (0.2, 0.2), the angle is 45<U+00B0> (arithmetic). # }
Run the code above in your browser using DataLab