pub struct Coords3d { /* private fields */ }Implementations§
Source§impl Coords3d
impl Coords3d
pub fn new(x: f64, y: f64, z: f64) -> Self
pub fn zero() -> Self
pub fn left() -> Self
pub fn right() -> Self
pub fn up() -> Self
pub fn down() -> Self
pub fn forward() -> Self
pub fn forwards() -> Self
pub fn backward() -> Self
pub fn backwards() -> Self
pub fn distance_from(&self, other: &Coords3d) -> f64
pub fn coords2d(&self) -> &Coords2d
pub fn x(&self) -> f64
pub fn y(&self) -> f64
pub fn z(&self) -> f64
pub fn values(&self) -> (f64, f64, f64)
Trait Implementations§
Source§impl AddAssign for Coords3d
impl AddAssign for Coords3d
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl PartialOrd for Coords3d
impl PartialOrd for Coords3d
Source§impl SubAssign for Coords3d
impl SubAssign for Coords3d
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for Coords3d
impl StructuralPartialEq for Coords3d
Auto Trait Implementations§
impl Freeze for Coords3d
impl RefUnwindSafe for Coords3d
impl Send for Coords3d
impl Sync for Coords3d
impl Unpin for Coords3d
impl UnwindSafe for Coords3d
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