Struct PositionCovariance
#[non_exhaustive]pub struct PositionCovariance {
pub xx: f32,
pub xy: f32,
pub yy: f32,
}Expand description
Symmetric 2×2 covariance of a refined corner position, in px² (px² per
gray-level² in [RefineResult::noise_covariance_per_unit_variance]).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.xx: f32Variance of the x coordinate.
xy: f32Covariance of the x and y coordinates.
yy: f32Variance of the y coordinate.
Implementations§
§impl PositionCovariance
impl PositionCovariance
pub fn new(xx: f32, xy: f32, yy: f32) -> PositionCovariance
pub fn new(xx: f32, xy: f32, yy: f32) -> PositionCovariance
Construct a PositionCovariance.
Trait Implementations§
§impl Add for PositionCovariance
The covariance of the sum of two independent errors.
impl Add for PositionCovariance
The covariance of the sum of two independent errors.
§type Output = PositionCovariance
type Output = PositionCovariance
The resulting type after applying the
+ operator.§fn add(self, rhs: PositionCovariance) -> PositionCovariance
fn add(self, rhs: PositionCovariance) -> PositionCovariance
Performs the
+ operation. Read more§impl Clone for PositionCovariance
impl Clone for PositionCovariance
§fn clone(&self) -> PositionCovariance
fn clone(&self) -> PositionCovariance
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 PositionCovariance
§impl Debug for PositionCovariance
impl Debug for PositionCovariance
§impl PartialEq for PositionCovariance
impl PartialEq for PositionCovariance
impl StructuralPartialEq for PositionCovariance
Auto Trait Implementations§
impl Freeze for PositionCovariance
impl RefUnwindSafe for PositionCovariance
impl Send for PositionCovariance
impl Sync for PositionCovariance
impl Unpin for PositionCovariance
impl UnsafeUnpin for PositionCovariance
impl UnwindSafe for PositionCovariance
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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