ballistic library

Support for doing something awesome.

More dartdocs go here.

Classes

Ammunition
Angular
Atmosphere
BallisticCoefficient
BallisticCoefficient keeps data about ballistic coefficient of a projectile
BaseUnit<T>
CurvePoint
CurvePoint is an approximation of drag to speed function curve made on the base of the ballistic
DataPoint
DataPoint is one value of the ballistic table used in table-based calculations below
Distance
The Distance structure keeps the distance value.
Energy
Pressure
Projectile
ShotParameters
ShotParameters class keeps parameters of the shot to be calculated
Temperature
Temperature class keeps information about the temperature
Timespan
Timespan keeps the amount of time spent
TrajectoryCalculator
TrajectoryData
TrajectoryData structure keeps information about one point of the trajectory.
TwistInfo
TwistInfo contains the rifling twist information
ValueWithUnit<T extends BaseUnit>
Vector
Velocity
Weapon
Weapon struct contains the weapon description
Weight
Represents a weight value with a specific unit.
WindInfo
WindInfo class keeps information about wind
ZeroInfo
ZeroInfo structure keeps the information about zeroing of the weapon

Constants

bc → const int
cA0 → const double
cA1 → const double
cA2 → const double
cA3 → const double
cA4 → const double
cA5 → const double
cGravityConstant → const double
cIcaoFreezingPointTemperatureR → const double
cIcaoStandardHumidity → const double
cIcaoStandardTemperatureR → const double
cMaximumDrop → const double
cMaxIterations → const int
cMinimumVelocity → const double
cPressureExponent → const double
cSpeedOfSound → const double
cStandardDensity → const double
cStandardPressure → const double
cStandardTemperature → const double
cTemperatureGradient → const double
cZeroFindingAccuracy → const double
defaultUnitsError → const String
ff → const int
pir → const double

Properties

g1Curve List<CurvePoint>
getter/setter pair
g1Table List<DataPoint>
getter/setter pair
g2Curve List<CurvePoint>
getter/setter pair
g2Table List<DataPoint>
getter/setter pair
g5Curve List<CurvePoint>
getter/setter pair
g5Table List<DataPoint>
getter/setter pair
g6Curve List<CurvePoint>
getter/setter pair
g6Table List<DataPoint>
getter/setter pair
g7Curve List<CurvePoint>
getter/setter pair
g7Table List<DataPoint>
getter/setter pair
g8Curve List<CurvePoint>
getter/setter pair
g8Table List<DataPoint>
getter/setter pair
gSCurve List<CurvePoint>
getter/setter pair
gSTable List<DataPoint>
getter/setter pair
zero Velocity
getter/setter pair
zeroDistance Distance
getter/setter pair

Functions

addWindInfo(Distance untilRange, Velocity windVelocity, Angular direction) WindInfo
AddWindInfo creates description of one wind
calculateByCurve(List<DataPoint> data, List<CurvePoint> curve, double mach) double
calculateCurve(List<DataPoint> dataPoints) List<CurvePoint>
createBallisticCoefficient(double value, DragTableId dragTable) BallisticCoefficient
CreateBallisticCoefficient creates ballistic coefficient object using the ballistic coefficient value and ballistic table.
createBallisticCoefficientForCustomDragFunction(double value, int valueType, DragFunction dragTable) BallisticCoefficient
CreateBallisticCoefficient creates ballistic coefficient object using the the custom drag function
createNoWind() List<WindInfo>
CreateNoWind creates wind description with no wind
createOnlyWindInfo(Velocity windVelocity, Angular direction) List<WindInfo>
CreateOnlyWindInfo creates the wind information for the constant wind for the whole distance of the shot
createWindInfo(List<WindInfo> winds) List<WindInfo>
CreateWindInfo creates a wind descriptor from multiple winds
dragFunctionFactory(DragTableId dragTable) DragFunction
main() → void

Typedefs

DragFunction = double Function(double mach)