pub struct Point3 {
pub x: i32,
pub y: i32,
pub z: i32,
}
Expand description
Helper struct defining a 2D point in space.
Fields§
§x: i32
The 3D point’s X location
y: i32
The 3D point’s Y location
z: i32
The 3D point’s Z location
Implementations§
Trait Implementations§
Source§impl AddAssign for Point3
impl AddAssign for Point3
Source§fn add_assign(&mut self, other: Point3)
fn add_assign(&mut self, other: Point3)
Performs the
+=
operation. Read moreSource§impl DivAssign for Point3
impl DivAssign for Point3
Source§fn div_assign(&mut self, other: Point3)
fn div_assign(&mut self, other: Point3)
Performs the
/=
operation. Read moreSource§impl MulAssign for Point3
impl MulAssign for Point3
Source§fn mul_assign(&mut self, other: Point3)
fn mul_assign(&mut self, other: Point3)
Performs the
*=
operation. Read moreSource§impl SubAssign for Point3
impl SubAssign for Point3
Source§fn sub_assign(&mut self, other: Point3)
fn sub_assign(&mut self, other: Point3)
Performs the
-=
operation. Read moreimpl Copy for Point3
impl Eq for Point3
impl StructuralPartialEq for Point3
Auto Trait Implementations§
impl Freeze for Point3
impl RefUnwindSafe for Point3
impl Send for Point3
impl Sync for Point3
impl Unpin for Point3
impl UnwindSafe for Point3
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