pub struct OnPlanePos { /* private fields */ }
Expand description
Describes a position on a plane
Implementations§
Source§impl OnPlanePos
impl OnPlanePos
pub fn new(x: OnLinePos, y: OnLinePos) -> OnPlanePos
pub fn x(&self) -> OnLinePos
pub fn y(&self) -> OnLinePos
pub fn x_mut(&mut self) -> &mut OnLinePos
pub fn y_mut(&mut self) -> &mut OnLinePos
Sourcepub fn unit_percent(&self, size: Size) -> Point
pub fn unit_percent(&self, size: Size) -> Point
Returns the position in a range from 0.0 to 1.0
Trait Implementations§
Source§impl Clone for OnPlanePos
impl Clone for OnPlanePos
Source§fn clone(&self) -> OnPlanePos
fn clone(&self) -> OnPlanePos
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OnPlanePos
impl Debug for OnPlanePos
Source§impl Default for OnPlanePos
impl Default for OnPlanePos
Source§impl PartialEq for OnPlanePos
impl PartialEq for OnPlanePos
Source§impl PartialOrd for OnPlanePos
impl PartialOrd for OnPlanePos
impl Copy for OnPlanePos
impl StructuralPartialEq for OnPlanePos
Auto Trait Implementations§
impl Freeze for OnPlanePos
impl RefUnwindSafe for OnPlanePos
impl Send for OnPlanePos
impl Sync for OnPlanePos
impl Unpin for OnPlanePos
impl UnwindSafe for OnPlanePos
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