pub struct WindDeflection(pub f64);Expand description
Wind deflection of a bullet in inches (in)
This struct represents the bullet’s wind deflection.
Tuple Fields§
§0: f64Implementations§
Source§impl WindDeflection
impl WindDeflection
Sourcepub fn calculate() -> WindDeflectionCalculateBuilder
pub fn calculate() -> WindDeflectionCalculateBuilder
Calculates the wind deflection of a bullet.
This function determines how much a crosswind will deflect a bullet from its path during flight.
§Parameters
lag_time: The lag time of the bullet in seconds.crosswind_speed: The speed of the crosswind in miles per hour (mph).
§Returns
A WindDeflection instance representing the wind deflection in inches.
Trait Implementations§
Source§impl Add for WindDeflection
impl Add for WindDeflection
Source§impl AddAssign for WindDeflection
impl AddAssign for WindDeflection
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl AsRef<f64> for WindDeflection
impl AsRef<f64> for WindDeflection
Source§impl Clone for WindDeflection
impl Clone for WindDeflection
impl Copy for WindDeflection
Source§impl Debug for WindDeflection
impl Debug for WindDeflection
Source§impl Default for WindDeflection
impl Default for WindDeflection
Source§impl Display for WindDeflection
impl Display for WindDeflection
Source§impl Div for WindDeflection
impl Div for WindDeflection
Source§impl DivAssign for WindDeflection
impl DivAssign for WindDeflection
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreSource§impl From<WindDeflection> for f64
impl From<WindDeflection> for f64
Source§fn from(t: WindDeflection) -> Self
fn from(t: WindDeflection) -> Self
Converts to this type from the input type.
Source§impl From<f64> for WindDeflection
impl From<f64> for WindDeflection
Source§impl FromStr for WindDeflection
impl FromStr for WindDeflection
Source§impl Mul for WindDeflection
impl Mul for WindDeflection
Source§impl MulAssign for WindDeflection
impl MulAssign for WindDeflection
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl PartialEq for WindDeflection
impl PartialEq for WindDeflection
Source§impl PartialOrd for WindDeflection
impl PartialOrd for WindDeflection
Source§impl Sub for WindDeflection
impl Sub for WindDeflection
Source§impl SubAssign for WindDeflection
impl SubAssign for WindDeflection
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for WindDeflection
impl RefUnwindSafe for WindDeflection
impl Send for WindDeflection
impl Sync for WindDeflection
impl Unpin for WindDeflection
impl UnsafeUnpin for WindDeflection
impl UnwindSafe for WindDeflection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more