pub struct PrincipalAxes {
pub major_variance_m2: f64,
pub minor_variance_m2: f64,
pub major_heading_rad: f64,
}Expand description
The axes of a Covariance: its eigenvalues, and the heading of the larger one’s eigenvector.
Fields§
§major_variance_m2: f64The variance along the major axis, the larger eigenvalue λ₁, m².
minor_variance_m2: f64The variance along the minor axis, the smaller eigenvalue λ₂, m²; zero for points on a
line.
major_heading_rad: f64The major axis’s heading, clockwise from north, in [0, π); east’s, π/2, for a circle.
Trait Implementations§
Source§impl Clone for PrincipalAxes
impl Clone for PrincipalAxes
Source§fn clone(&self) -> PrincipalAxes
fn clone(&self) -> PrincipalAxes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrincipalAxes
Source§impl Debug for PrincipalAxes
impl Debug for PrincipalAxes
Source§impl<'de> Deserialize<'de> for PrincipalAxes
impl<'de> Deserialize<'de> for PrincipalAxes
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
Source§impl PartialEq for PrincipalAxes
impl PartialEq for PrincipalAxes
Source§fn eq(&self, other: &PrincipalAxes) -> bool
fn eq(&self, other: &PrincipalAxes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrincipalAxes
impl Serialize for PrincipalAxes
impl StructuralPartialEq for PrincipalAxes
Auto Trait Implementations§
impl Freeze for PrincipalAxes
impl RefUnwindSafe for PrincipalAxes
impl Send for PrincipalAxes
impl Sync for PrincipalAxes
impl Unpin for PrincipalAxes
impl UnsafeUnpin for PrincipalAxes
impl UnwindSafe for PrincipalAxes
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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