pub struct CollisionEvent {
pub min_characteristic_length: f32,
pub sat_kind: SatKind,
pub input_mass: f32,
pub satellites: Array1<Satellite>,
pub max_characteristic_length: f32,
}
Fields§
§min_characteristic_length: f32
§sat_kind: SatKind
§input_mass: f32
§satellites: Array1<Satellite>
§max_characteristic_length: f32
Implementations§
Source§impl CollisionEvent
impl CollisionEvent
pub fn new( satellites: &[Satellite], min_characteristic_length: f32, ) -> CollisionEvent
Trait Implementations§
Source§impl Debug for CollisionEvent
impl Debug for CollisionEvent
Source§impl FragmentationEvent for CollisionEvent
impl FragmentationEvent for CollisionEvent
Source§fn fragment_count(&self, min_characteristic_len: f32) -> f32
fn fragment_count(&self, min_characteristic_len: f32) -> f32
Returns the power law distribution for the number of fragments in a collision.
§Arguments
m_proj
- The mass of the projectile. [kg]m_targ
- The mass of the target. [kg]v_impact
- The impact velocity of the collision. [km/s]characteristic_len
- Then characteristic length. [m]
fn location(&self) -> Array1<f32>
fn min_characteristic_length(&self) -> f32
fn max_characteristic_length(&self) -> f32
fn power_law_exponent(&self) -> f32
fn kind(&self) -> &SatKind
fn delta_velocity_offset(&self) -> [f32; 2]
Auto Trait Implementations§
impl Freeze for CollisionEvent
impl RefUnwindSafe for CollisionEvent
impl Send for CollisionEvent
impl Sync for CollisionEvent
impl Unpin for CollisionEvent
impl UnwindSafe for CollisionEvent
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more