pub struct Point3 {
pub x: f32,
pub y: f32,
pub z: f32,
}
Expand description
Point in 3D game world.
Fields§
§x: f32
§y: f32
§z: f32
Implementations§
Trait Implementations§
impl Copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Distance for T
impl<T> Distance for T
Source§fn distance_squared<P: Into<Point2>>(self, other: P) -> f32
fn distance_squared<P: Into<Point2>>(self, other: P) -> f32
Calculates squared euclidean distance from
self
to other
.Source§fn distance<P: Into<Point2>>(self, other: P) -> f32
fn distance<P: Into<Point2>>(self, other: P) -> f32
Calculates euclidean distance from
self
to other
.