pub struct GmpePoint {
pub lon: f64,
pub lat: f64,
pub value: f64,
pub kind: GmpePointKind,
}
Expand description
Struct representing a point with a computed GMPE value.
Fields§
§lon: f64
Longitude in decimal degrees.
lat: f64
Latitude in decimal degrees.
value: f64
Computed ground motion value.
kind: GmpePointKind
Type of GMPE output value.
Implementations§
Source§impl GmpePoint
impl GmpePoint
Sourcepub fn new(lon: f64, lat: f64, value: f64, kind: GmpePointKind) -> Self
pub fn new(lon: f64, lat: f64, value: f64, kind: GmpePointKind) -> Self
Create a new GmpePoint instance.
Sourcepub fn new_pga(lon: f64, lat: f64, value: f64) -> Self
pub fn new_pga(lon: f64, lat: f64, value: f64) -> Self
Create a new Peak Ground Acceleration (PGA) point.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GmpePoint
impl<'de> Deserialize<'de> for GmpePoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GmpePoint
impl RefUnwindSafe for GmpePoint
impl Send for GmpePoint
impl Sync for GmpePoint
impl Unpin for GmpePoint
impl UnwindSafe for GmpePoint
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