Wind
Wind
A base class for creating Wind. Wind direction and velocity by down-range distance.
Attributes:
Name | Type | Description |
---|---|---|
velocity |
Velocity
|
speed of wind |
direction_from |
Angular
|
0 is blowing from behind shooter. 90 degrees is blowing from shooter's left towards right. |
until_distance |
Distance
|
until which distance the specified wind blows |
MAX_DISTANCE_FEET |
float
|
Optional custom max wind distance |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
velocity
|
Optional[Union[float, Velocity]]
|
speed of wind |
None
|
direction_from
|
Optional[Union[float, Angular]]
|
0 is blowing from behind shooter. 90 degrees is blowing from shooter's left towards right. |
None
|
until_distance
|
Optional[Union[float, Distance]]
|
until which distance the specified wind blows |
None
|
MAX_DISTANCE_FEET
|
Optional custom max wind distance |
required |
Example
This is how you can create a wind
from py_ballisticcalc import Wind
wind = Wind(
velocity=Unit.FPS(2700),
direction_from=Unit.Degree(20)
)
Source code in py_ballisticcalc\conditions.py
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 |
|
until_distance
instance-attribute
¶
until_distance: Distance = distance(until_distance or Foot(MAX_DISTANCE_FEET))