Classes | |
class | Builder |
Builder class for constructing Input objects with a friendly interface. More... | |
struct | Input |
Structure of input parameters consumed by the solver. More... | |
struct | Options |
Structure holding optional parameters for the Solve function. More... | |
struct | Output |
Structure holding the output results of the ballistic calculation. More... | |
Functions | |
LOB_EXPORT const char * | Version () |
Gets the library version in major.minor.patch format. | |
LOB_EXPORT size_t | Solve (const Input &in, const uint32_t *pranges, Output *pouts, size_t size, const Options &options) |
Solves the exterior ballistics problem for a given set of ranges. | |
template<size_t N> | |
size_t | Solve (const Input &in, const std::array< uint32_t, N > *pranges, std::array< Output, N > *pouts, const Options &options=Options{}) |
Solves the exterior ballistics problem for a given set of ranges. | |
LOB_EXPORT double | MoaToMil (double value) |
Converts minutes of angle (MOA) to milliradians (MIL). | |
LOB_EXPORT double | MoaToDeg (double value) |
Converts minutes of angle (MOA) to degrees. | |
LOB_EXPORT double | MoaToIphy (double value) |
Converts minutes of angle (MOA) to inches per hundred yards (IPHY). | |
LOB_EXPORT double | MoaToInch (double value, double range_ft) |
Converts minutes of angle (MOA) to projected inches at a given range in feet. | |
LOB_EXPORT double | MilToMoa (double value) |
Converts milliradians (MIL) to minutes of angle (MOA). | |
LOB_EXPORT double | MilToDeg (double value) |
Converts milliradians (MIL) to degrees. | |
LOB_EXPORT double | MilToIphy (double value) |
Converts milliradians (MIL) to inches per hundred yards (IPHY). | |
LOB_EXPORT double | MilToInch (double value, double range_ft) |
Converts milliradians (MIL) to projected inches at a given range in feet. | |
LOB_EXPORT double | DegToMoa (double value) |
Converts degrees to minutes of angle (MOA). | |
LOB_EXPORT double | DegToMil (double value) |
Converts degrees to milliradians (MIL). | |
LOB_EXPORT double | InchToMoa (double value, double range_ft) |
Inches of projection at a given range to minutes of angle (MOA) | |
LOB_EXPORT double | InchToMil (double value, double range_ft) |
Inches of projection at a given range to milliradians (MIL) | |
LOB_EXPORT double | InchToDeg (double value, double range_ft) |
Inches of projection at a given range to degrees. | |
LOB_EXPORT double | JToFtLbs (double value) |
Converts joules to foot-pounds. | |
LOB_EXPORT double | FtLbsToJ (double value) |
Converts foot-pounds to joules. | |
LOB_EXPORT double | MtoYd (double value) |
Converts meters to yards. | |
LOB_EXPORT double | YdToFt (double value) |
Converts yards to feet. | |
LOB_EXPORT double | MToFt (double value) |
Converts meters to feet. | |
LOB_EXPORT double | FtToIn (double value) |
Converts feet to inches. | |
LOB_EXPORT double | MmToIn (double value) |
Converts millimeters to inches. | |
LOB_EXPORT double | CmToIn (double value) |
Converts centimeters to inches. | |
LOB_EXPORT double | YdToM (double value) |
Converts yards to meters. | |
LOB_EXPORT double | FtToM (double value) |
Converts feet to meters. | |
LOB_EXPORT double | FtToYd (double value) |
Converts feet to yards. | |
LOB_EXPORT double | InToMm (double value) |
Converts inches to millimeters. | |
LOB_EXPORT double | InToCm (double value) |
Converts inches to centimeters. | |
LOB_EXPORT double | InToFt (double value) |
Converts inches to feet. | |
LOB_EXPORT double | PaToInHg (double value) |
Converts pascals to inches of mercury. | |
LOB_EXPORT double | MbarToInHg (double value) |
Converts millibars to inches of mercury. | |
LOB_EXPORT double | PsiToInHg (double value) |
Converts pounds per square inch (PSI) to inches of mercury. | |
LOB_EXPORT double | LbsToGrain (double value) |
Converts pounds to grains. | |
LOB_EXPORT double | GToGrain (double value) |
Converts grams to grains. | |
LOB_EXPORT double | KgToGrain (double value) |
Converts kilograms to grains. | |
LOB_EXPORT double | KgSqMToPmsi (double value) |
Converts kilograms per square meter to pounds mass per square inch. | |
LOB_EXPORT double | FpsToMps (double value) |
Converts feet per second to meters per second. | |
LOB_EXPORT double | MpsToFps (double value) |
Converts meters per second to feet per second. | |
LOB_EXPORT double | KphToMph (double value) |
Converts kilometers per hour to miles per hour. | |
LOB_EXPORT double | KnToMph (double value) |
Converts Knots to miles per hour. | |
LOB_EXPORT double | MsToS (double value) |
Converts milliseconds to seconds. | |
LOB_EXPORT double | UsToS (double value) |
Converts microseconds to seconds. | |
LOB_EXPORT double | SToMs (double value) |
Converts seconds to milliseconds. | |
LOB_EXPORT double | SToUs (double value) |
Converts seconds to microseconds. | |
LOB_EXPORT double | DegCToDegF (double value) |
Converts degrees celsius to degrees fahrenheit. | |
Variables | |
enum LOB_EXPORT | DragFunctionT |
Enumerates the supported drag functions. | |
enum LOB_EXPORT | kG2 |
G1 drag function. | |
enum LOB_EXPORT | kG5 |
G2 drag function. | |
enum LOB_EXPORT | kG6 |
G5 drag function. | |
enum LOB_EXPORT | kG7 |
G6 drag function. | |
enum LOB_EXPORT | kG8 |
G7 drag function. | |
enum LOB_EXPORT | AtmosphereReferenceT |
Enumerates the supported atmosphere reference types. | |
enum LOB_EXPORT | kIcao |
Army Standard Metro. | |
enum LOB_EXPORT | ClockAngleT |
Enumerates clock angle positions. | |
enum LOB_EXPORT | kII |
three o'clock | |
enum LOB_EXPORT | kI |
two o'clock | |
enum LOB_EXPORT | kXII |
one o'clock | |
enum LOB_EXPORT | kXI |
twelve o'clock | |
enum LOB_EXPORT | kX |
eleven o'clock | |
enum LOB_EXPORT | kIX |
ten o'clock | |
enum LOB_EXPORT | kVIII |
nine o'clock | |
enum LOB_EXPORT | kVII |
eight o'clock | |
enum LOB_EXPORT | kVI |
seven o'clock | |
enum LOB_EXPORT | kV |
six o'clock | |
enum LOB_EXPORT | kIV |
five o'clock | |
LOB_EXPORT double lob::CmToIn | ( | double | value | ) |
Converts centimeters to inches.
value | Length in centimeters. |
LOB_EXPORT double lob::DegCToDegF | ( | double | value | ) |
Converts degrees celsius to degrees fahrenheit.
value | Temperature in degrees celsius |
LOB_EXPORT double lob::DegToMil | ( | double | value | ) |
Converts degrees to milliradians (MIL).
value | Angle in degrees. |
LOB_EXPORT double lob::DegToMoa | ( | double | value | ) |
Converts degrees to minutes of angle (MOA).
value | Angle in degrees. |
LOB_EXPORT double lob::FpsToMps | ( | double | value | ) |
Converts feet per second to meters per second.
value | Speed in feet per second. |
LOB_EXPORT double lob::FtLbsToJ | ( | double | value | ) |
Converts foot-pounds to joules.
value | Energy in foot-pounds. |
LOB_EXPORT double lob::FtToIn | ( | double | value | ) |
Converts feet to inches.
value | Length in feet. |
LOB_EXPORT double lob::FtToM | ( | double | value | ) |
Converts feet to meters.
value | Length in feet. |
LOB_EXPORT double lob::FtToYd | ( | double | value | ) |
Converts feet to yards.
value | Length in feet. |
LOB_EXPORT double lob::GToGrain | ( | double | value | ) |
Converts grams to grains.
value | Mass in grams. |
LOB_EXPORT double lob::InchToDeg | ( | double | value, |
double | range_ft ) |
Inches of projection at a given range to degrees.
value | Projected inches. |
range_ft | Range in feet. |
LOB_EXPORT double lob::InchToMil | ( | double | value, |
double | range_ft ) |
Inches of projection at a given range to milliradians (MIL)
value | Projected inches. |
range_ft | Range in feet. |
LOB_EXPORT double lob::InchToMoa | ( | double | value, |
double | range_ft ) |
Inches of projection at a given range to minutes of angle (MOA)
value | Projected inches. |
range_ft | Range in feet. |
LOB_EXPORT double lob::InToCm | ( | double | value | ) |
Converts inches to centimeters.
value | Length in inches. |
LOB_EXPORT double lob::InToFt | ( | double | value | ) |
Converts inches to feet.
value | Length in inches. |
LOB_EXPORT double lob::InToMm | ( | double | value | ) |
Converts inches to millimeters.
value | Length in inches. |
LOB_EXPORT double lob::JToFtLbs | ( | double | value | ) |
Converts joules to foot-pounds.
value | Energy in joules. |
LOB_EXPORT double lob::KgSqMToPmsi | ( | double | value | ) |
Converts kilograms per square meter to pounds mass per square inch.
value | Sectional density in Kg/m². |
LOB_EXPORT double lob::KgToGrain | ( | double | value | ) |
Converts kilograms to grains.
value | Mass in kilograms. |
LOB_EXPORT double lob::KnToMph | ( | double | value | ) |
Converts Knots to miles per hour.
value | Speed in Knots. |
LOB_EXPORT double lob::KphToMph | ( | double | value | ) |
Converts kilometers per hour to miles per hour.
value | Speed in kilometers per hour. |
LOB_EXPORT double lob::LbsToGrain | ( | double | value | ) |
Converts pounds to grains.
value | Mass in pounds. |
LOB_EXPORT double lob::MbarToInHg | ( | double | value | ) |
Converts millibars to inches of mercury.
value | Pressure in millibars. |
LOB_EXPORT double lob::MilToDeg | ( | double | value | ) |
Converts milliradians (MIL) to degrees.
value | Angle in MIL. |
LOB_EXPORT double lob::MilToInch | ( | double | value, |
double | range_ft ) |
Converts milliradians (MIL) to projected inches at a given range in feet.
value | Angle in MIL. |
range_ft | Range in feet. |
LOB_EXPORT double lob::MilToIphy | ( | double | value | ) |
Converts milliradians (MIL) to inches per hundred yards (IPHY).
value | Angle in MIL. |
LOB_EXPORT double lob::MilToMoa | ( | double | value | ) |
Converts milliradians (MIL) to minutes of angle (MOA).
value | Angle in MIL. |
LOB_EXPORT double lob::MmToIn | ( | double | value | ) |
Converts millimeters to inches.
value | Length in millimeters. |
LOB_EXPORT double lob::MoaToDeg | ( | double | value | ) |
Converts minutes of angle (MOA) to degrees.
value | Angle in MOA. |
LOB_EXPORT double lob::MoaToInch | ( | double | value, |
double | range_ft ) |
Converts minutes of angle (MOA) to projected inches at a given range in feet.
value | Angle in MOA. |
range_ft | Range in feet. |
LOB_EXPORT double lob::MoaToIphy | ( | double | value | ) |
Converts minutes of angle (MOA) to inches per hundred yards (IPHY).
value | Angle in MOA. |
LOB_EXPORT double lob::MoaToMil | ( | double | value | ) |
Converts minutes of angle (MOA) to milliradians (MIL).
value | Angle in MOA. |
LOB_EXPORT double lob::MpsToFps | ( | double | value | ) |
Converts meters per second to feet per second.
value | Speed in meters per second. |
LOB_EXPORT double lob::MsToS | ( | double | value | ) |
Converts milliseconds to seconds.
value | Time in milliseconds. |
LOB_EXPORT double lob::MToFt | ( | double | value | ) |
Converts meters to feet.
value | Length in meters. |
LOB_EXPORT double lob::MtoYd | ( | double | value | ) |
Converts meters to yards.
value | Length in meters. |
LOB_EXPORT double lob::PaToInHg | ( | double | value | ) |
Converts pascals to inches of mercury.
value | Pressure in pascals. |
LOB_EXPORT double lob::PsiToInHg | ( | double | value | ) |
Converts pounds per square inch (PSI) to inches of mercury.
value | Pressure in PSI. |
size_t lob::Solve | ( | const Input & | in, |
const std::array< uint32_t, N > * | pranges, | ||
std::array< Output, N > * | pouts, | ||
const Options & | options = Options{} ) |
Solves the exterior ballistics problem for a given set of ranges.
N | The number of ranges to solve for. |
in | Input parameters for the calculation. |
pranges | Pointer to an array of ranges (in feet) to solve for. |
pouts | Pointer to an array wherec the output results will be stored. |
options | Optional parameters for the solver. |
LOB_EXPORT size_t lob::Solve | ( | const Input & | in, |
const uint32_t * | pranges, | ||
Output * | pouts, | ||
size_t | size, | ||
const Options & | options ) |
Solves the exterior ballistics problem for a given set of ranges.
in | Input parameters for the calculation. |
pranges | Pointer to an array of ranges (in feet) to solve for. |
pouts | Pointer to an array wherec the output results will be stored. |
size | The number of ranges to solve for. |
options | Optional parameters for the solver. |
LOB_EXPORT double lob::SToMs | ( | double | value | ) |
Converts seconds to milliseconds.
value | Time in seconds. |
LOB_EXPORT double lob::SToUs | ( | double | value | ) |
Converts seconds to microseconds.
value | Time in seconds. |
LOB_EXPORT double lob::UsToS | ( | double | value | ) |
Converts microseconds to seconds.
value | Time in microseconds. |
LOB_EXPORT const char * lob::Version | ( | ) |
Gets the library version in major.minor.patch format.
LOB_EXPORT double lob::YdToFt | ( | double | value | ) |
Converts yards to feet.
value | Length in yards. |
LOB_EXPORT double lob::YdToM | ( | double | value | ) |
Converts yards to meters.
value | Length in yards. |
|
strong |
Enumerates the supported atmosphere reference types.
|
strong |
Enumerates clock angle positions.
|
strong |
Enumerates the supported drag functions.
enum LOB_EXPORT lob::kG2 |
G1 drag function.
enum LOB_EXPORT lob::kG5 |
G2 drag function.
enum LOB_EXPORT lob::kG6 |
G5 drag function.
enum LOB_EXPORT lob::kG7 |
G6 drag function.
enum LOB_EXPORT lob::kG8 |
G7 drag function.
G8 drag function
enum LOB_EXPORT lob::kI |
two o'clock
enum LOB_EXPORT lob::kIcao |
Army Standard Metro.
International Civil Aviation Organization (ICAO)
enum LOB_EXPORT lob::kII |
three o'clock
enum LOB_EXPORT lob::kIV |
five o'clock
four o'clock
enum LOB_EXPORT lob::kIX |
ten o'clock
enum LOB_EXPORT lob::kV |
six o'clock
enum LOB_EXPORT lob::kVI |
seven o'clock
enum LOB_EXPORT lob::kVII |
eight o'clock
enum LOB_EXPORT lob::kVIII |
nine o'clock
enum LOB_EXPORT lob::kX |
eleven o'clock
enum LOB_EXPORT lob::kXI |
twelve o'clock
enum LOB_EXPORT lob::kXII |
one o'clock