pub struct Position {
pub x: f64,
pub y: f64,
pub third: Option<f64>,
pub fourth: Option<f64>,
}Expand description
A single coordinate, normalised to four ordinates so downstream code never has to worry about how many were actually present.
Fields§
§x: f64§y: f64§third: Option<f64>Third ordinate as written in the source, if any.
fourth: Option<f64>Fourth ordinate as written in the source, if any.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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