wflo (version 1.2)

GetAngle: Returns the angle between two turbines.

Description

As seen from a point in the wind farm, computes the angle to another point in that farm.

Usage

GetAngle(x1, y1, x2, y2)

Arguments

x1

must be a single value. Provide the x location of the first turbine.

y1

must be a single value. Provide the y location of the first turbine.

x2

must be a single value. Provide the x location of the second turbine.

y2

must be a single value. Provide the y location of the second turbine.

Value

GetAngle returns a single number between 0 and 360. If both points are identical, the return value is 0.

Details

From point 2's point of view, computes the angle to point 1.

See Also

Use JensenAngle to compute the wake cone and with it, use IsInWake to see if another turbine B is in turbine A's wake.

Examples

Run this code
# 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