3#ifndef TRITON_WINDFETCH_H
4#define TRITON_WINDFETCH_H
10%module TritonWindFetch
14using namespace Triton;
40 void TRITONAPI
SetWind(
double speed,
double direction);
95 void TRITONAPI
GetWindAtLocation(
const Vector3& position,
double& windSpeed,
double& windDirection,
double& fetchLength)
const;
98 void TRITONAPI AdjustForLeftHanded();
103 double speed, direction, fetchLength;
A 3D Vector class and its operations.
A localized or global area of wind of given speed and direction.
This base class for all Triton objects intercepts the new and delete operators, routing them through ...
Definition: MemAlloc.h:71
A 3D double-precision Vector class and its operations.
Definition: Vector3.h:36
A localized or global area of wind of given speed and direction.
Definition: WindFetch.h:27
void TRITONAPI SetFetchLength(double fetch)
If using the JONSWAP model, swells will increase depending on the "fetch length," or the distance the...
void TRITONAPI SetLocalization(const Vector3 ¢er, const Vector3 &radii)
Sets a localized area, in the form of an ellipsoid, in which the wind fetch is active.
void TRITONAPI ClearLocalization()
Clears any localization and makes this wind fetch globally applied.
WindFetch()
Default constructor.
void TRITONAPI SetWind(double speed, double direction)
Sets the wind speed and direction of this wind fetch.
void TRITONAPI GetWindAtLocation(const Vector3 &position, double &windSpeed, double &windDirection, double &fetchLength) const
Retrieves the wind direction and speed from this wind fetch at the given location.
void TRITONAPI ClearFetchLength()
Clears any explicit fetch length specified by SetFetchLength().