pub struct Point {
pub x: f64,
pub y: f64,
}Expand description
A 2D point in real space.
Fields§
§x: f64x coordinate of this point.
y: f64y coordinate of this point.
Implementations§
Trait Implementations§
Source§impl AddAssign<&Vector> for Point
impl AddAssign<&Vector> for Point
Source§fn add_assign(&mut self, other: &Vector)
fn add_assign(&mut self, other: &Vector)
Performs the
+= operation. Read moreSource§impl AddAssign<Vector> for Point
impl AddAssign<Vector> for Point
Source§fn add_assign(&mut self, other: Vector)
fn add_assign(&mut self, other: Vector)
Performs the
+= operation. Read moreimpl Copy for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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