pub struct Decentration {
pub vertical_mm: f64,
pub horizontal_mm: f64,
}Expand description
Represents lens decentration relative to the optical center.
Fields§
§vertical_mm: f64Vertical decentration in millimeters.
- Positive = up.
- Negative = down.
Example: 3 mm down →
vertical_mm = -3.0.
horizontal_mm: f64Horizontal decentration in millimeters.
- Positive = in (nasal).
- Negative = out (temporal).
Example: 2 mm in →
horizontal_mm = 2.0.
Trait Implementations§
Source§impl Clone for Decentration
impl Clone for Decentration
Source§fn clone(&self) -> Decentration
fn clone(&self) -> Decentration
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 Decentration
Auto Trait Implementations§
impl Freeze for Decentration
impl RefUnwindSafe for Decentration
impl Send for Decentration
impl Sync for Decentration
impl Unpin for Decentration
impl UnsafeUnpin for Decentration
impl UnwindSafe for Decentration
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