Class: TrajectoryHelper

TrajectoryHelper

new TrajectoryHelper(windDataProvider, arrowLengthProportionopt)

TrajectoryHelper handles trajectories
Parameters:
Name Type Attributes Description
windDataProvider WindDataProvider The wind data file.
arrowLengthProportion number <optional>
scale wind length data, default 10
Source:

Methods

getTimeData(arrow, time) → {Object}

Returns the head/tail positions of an arrow on the trajectory and its length
Parameters:
Name Type Description
arrow Arrow The arrow to calculate
time int Timestep to calculate for
Source:
Returns:
Object with points in "head" and "tail" and "length"
Type
Object

integrate(s, stepSize, trajectoryLength) → {Object}

Integration using Runge-Kutta (RK2)
Parameters:
Name Type Description
s Object Point to integrate
stepSize Number Step size
trajectoryLength Number Length of the trajectory that is integrated.
Source:
Returns:
Endpoint of integration
Type
Object