powered by
As seen from a point in the wind farm, computes the angle to another point in that farm.
GetAngle(x1, y1, x2, y2)
GetAngle returns a single number between 0 and 360. If both points are identical, the return value is 0.
GetAngle
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.
Carsten Croonenbroeck
From point 2's point of view, computes the angle to point 1.
Use JensenAngle to compute the wake cone and with it, use JensenTrapezoid to see if another turbine B is in turbine A's wake.
JensenAngle
JensenTrapezoid
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° (arithmetic).
Run the code above in your browser using DataLab