Struct crystal_ball::math::Point2
source · pub struct Point2 {
pub x: f64,
pub y: f64,
}
Expand description
A 2-dimensional point.
Fields§
§x: f64
§y: f64
Implementations§
Trait Implementations§
source§impl AddAssign<Vec2> for Point2
impl AddAssign<Vec2> for Point2
source§fn add_assign(&mut self, rhs: Vec2)
fn add_assign(&mut self, rhs: Vec2)
Performs the
+=
operation. Read moresource§impl AddAssign for Point2
impl AddAssign for Point2
source§fn add_assign(&mut self, rhs: Point2)
fn add_assign(&mut self, rhs: Point2)
Performs the
+=
operation. Read moresource§impl DivAssign<f64> for Point2
impl DivAssign<f64> for Point2
source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moresource§impl MulAssign<f64> for Point2
impl MulAssign<f64> for Point2
source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moresource§impl PartialEq for Point2
impl PartialEq for Point2
source§impl SubAssign<Vec2> for Point2
impl SubAssign<Vec2> for Point2
source§fn sub_assign(&mut self, rhs: Vec2)
fn sub_assign(&mut self, rhs: Vec2)
Performs the
-=
operation. Read moreimpl Copy for Point2
impl StructuralPartialEq for Point2
Auto Trait Implementations§
impl RefUnwindSafe for Point2
impl Send for Point2
impl Sync for Point2
impl Unpin for Point2
impl UnwindSafe for Point2
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.