Crate ballistics_rs

Source
Expand description

§Ballistics Crate

This crate provides constants and equations for solving ballistics problems. It includes definitions for various physical constants and properties related to ballistics, such as gravitational constant, speed of sound, gyroscopic stability, kinetic energy, and ballistic coefficient.

Structs§

AerodynamicJump
Aerodynamic jump of a projectile
AerodynamicJumpCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
AirDensity
Air density at sea level (lb/ft³)
ApertureSightCalibration
Aperture sight calibration value
ApertureSightCalibrationCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
BallisticCoefficient
Ballistic Coefficient (dimensionless)
BallisticCoefficientCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
BulletDiameter
Bullet Diameter (in)
BulletLength
Bullet Length (calibers)
BulletWeight
Bullet weight (grains)
Distance
Distance (ft)
DragCoefficient
Drag Coefficient
FormFactor
Form factor of a projectile
FormFactorCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
Gravity
Gravitational constant (ft/s²)
GyroscopicStability
Miller’s Stability Formula (dimensionless)
GyroscopicStabilityAtmosphericCorrectionBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
GyroscopicStabilityCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
GyroscopicStabilityVelocityCorrectionBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
KineticEnergy
Kinetic Energy (ft-lb)
KineticEnergyCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
LagTime
Lag time of a bullet in seconds (s)
LagTimeCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
Pressure
Pressure (inHg)
RiflingTwist
Rifling Twist (calibers per turn)
SightCalibration
Sight Calibration (in)
SpeedOfSound
Speed of sound given temperature (ft/s)
SpeedOfSoundCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
SpinDrift
Spin Drift (in)
SpinDriftCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
Temperature
Temperature (F)
TimeOfFlight
Time of Flight (s)
Velocity
Velocity (ft/s)
VelocityProjection
Get the velocity (ft/s) of a second bullet using the weight and velocity of another bullet.
VelocityProjectionCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
WindDeflection
Wind deflection of a bullet in inches (in)
WindDeflectionCalculateBuilder
Use builder syntax to set the required parameters and finish by calling the method Self::solve().
WindSpeed
Wind Speed (mph)

Constants§

AIR_DENSITY_SEA_LEVEL
Air density at sea level (lb/ft³)
SPEED_OF_SOUND_SEA_LEVEL
Speed of sound at sea level (ft/s)
STANDARD_GRAVITY
Standard gravitational constant (ft/s²)
STANDARD_PRESSURE
ICAO definition of standard pressure (inHg)
STANDARD_TEMPERATURE
ICAO definition of standard temperature (F)