Wind constructor
Wind({})
Implementation
Wind({
Velocity? velocity,
Angular? directionFrom,
Distance? untilDistance,
double? customMaxDistanceFeet,
}) : velocity = velocity ?? Velocity.mps(0),
directionFrom = directionFrom ?? Angular.radian(0),
untilDistance =
untilDistance ??
Distance(customMaxDistanceFeet ?? maxDistanceFeet, Unit.foot) {
if (customMaxDistanceFeet != null) {
maxDistanceFeet = customMaxDistanceFeet;
}
}