FlowVector¶
Namespace: ThinkGeo.Core
One cell of a VectorFieldSource: which way the flow goes there and how fast, as its east (FlowVector.U) and north (FlowVector.V) components - the form wind and current models publish. A cell with no data has NaN components.
public struct FlowVector
Inheritance object → ValueType → FlowVector
Properties¶
U¶
The east component; negative flows west.
public float U { get; }
Property Value¶
V¶
The north component; negative flows south.
public float V { get; }
Property Value¶
Constructors¶
FlowVector(float, float)¶
FlowVector(float u, float v)
Parameters¶
u float
The east component; negative flows west.
v float
The north component; negative flows south.
Methods¶
FromSpeedDirection(float, float)¶
A flow given as a speed and the direction it goes TO, in degrees clockwise from north. A meteorological wind direction is where the wind comes FROM: add 180 first.
FlowVector FromSpeedDirection(float speed, float directionInDegrees)
Parameters¶
speed float
directionInDegrees float