lob 0.11.0
Exterior ballistics library — API + technical reference
Loading...
Searching...
No Matches
lob::Context Struct Reference

Structure of parameters consumed by the solver. More...

#include <lob.hpp>

Public Attributes

double drag_coeff
 Drag coefficient scaling factor.
 
double speed_of_sound
 The local speed of sound in Fps.
 
double mass
 Mass of the projectile in pounds.
 
double optic_height
 Height of the optic above the bore.
 
Gravity gravity
 Gravity vector.
 
Wind wind
 Wind vector.
 
Coriolis coriolis
 Coriolis effect parameters.
 
double zero_angle
 Angle between sight and trajectory.
 
double stability_factor
 Miller stability factor.
 
double aerodynamic_jump
 Aerodynamic jump effect in Moa.
 
double spindrift_factor
 Spin drift factor.
 
double k_lapse
 Projected linear density lapse coeff.
 
double max_time
 Max time of flight for solver.
 
std::array< float, kLobCoeffsSizedrags
 Drag curve coefficients.
 
uint16_t velocity
 Initial velocity of projectile in Fps.
 
uint16_t minimum_speed
 Minimum speed for solver.
 
uint16_t step_size
 Solver step size in inches.
 
ErrorT error
 Error status after build.
 

Detailed Description

Structure of parameters consumed by the solver.

Note
This is not a user-friendly structure. Generate Context using the provided Builder class. Layout-compatible with LobContext.

Member Data Documentation

◆ aerodynamic_jump

double lob::Context::aerodynamic_jump

Aerodynamic jump effect in Moa.

◆ coriolis

Coriolis lob::Context::coriolis

Coriolis effect parameters.

◆ drag_coeff

double lob::Context::drag_coeff

Drag coefficient scaling factor.

◆ drags

std::array<float, kLobCoeffsSize> lob::Context::drags

Drag curve coefficients.

◆ error

ErrorT lob::Context::error

Error status after build.

◆ gravity

Gravity lob::Context::gravity

Gravity vector.

◆ k_lapse

double lob::Context::k_lapse

Projected linear density lapse coeff.

◆ mass

double lob::Context::mass

Mass of the projectile in pounds.

◆ max_time

double lob::Context::max_time

Max time of flight for solver.

◆ minimum_speed

uint16_t lob::Context::minimum_speed

Minimum speed for solver.

◆ optic_height

double lob::Context::optic_height

Height of the optic above the bore.

◆ speed_of_sound

double lob::Context::speed_of_sound

The local speed of sound in Fps.

◆ spindrift_factor

double lob::Context::spindrift_factor

Spin drift factor.

◆ stability_factor

double lob::Context::stability_factor

Miller stability factor.

◆ step_size

uint16_t lob::Context::step_size

Solver step size in inches.

◆ velocity

uint16_t lob::Context::velocity

Initial velocity of projectile in Fps.

◆ wind

Wind lob::Context::wind

Wind vector.

◆ zero_angle

double lob::Context::zero_angle

Angle between sight and trajectory.


The documentation for this struct was generated from the following file: