pub struct ScreenPoint {
pub x: f32,
pub y: f32,
}Expand description
A point in screen coordinates (points, origin at the top-left).
Fields§
§x: f32Horizontal position.
y: f32Vertical position.
Implementations§
Source§impl ScreenPoint
impl ScreenPoint
Sourcepub fn distance_sq(self, other: Self) -> f32
pub fn distance_sq(self, other: Self) -> f32
The squared Euclidean distance to other.
Trait Implementations§
Source§impl Clone for ScreenPoint
impl Clone for ScreenPoint
impl Copy for ScreenPoint
Source§impl Debug for ScreenPoint
impl Debug for ScreenPoint
Source§impl Default for ScreenPoint
impl Default for ScreenPoint
Source§impl Mul<f32> for ScreenPoint
impl Mul<f32> for ScreenPoint
Source§impl PartialEq for ScreenPoint
impl PartialEq for ScreenPoint
impl StructuralPartialEq for ScreenPoint
Auto Trait Implementations§
impl Forget for ScreenPoint
impl Freeze for ScreenPoint
impl Move for ScreenPoint
impl RefUnwindSafe for ScreenPoint
impl Send for ScreenPoint
impl Sync for ScreenPoint
impl Unpin for ScreenPoint
impl UnsafeUnpin for ScreenPoint
impl UnwindSafe for ScreenPoint
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