Struct crystal_ball::math::Point3
source · pub struct Point3 {
pub x: f64,
pub y: f64,
pub z: f64,
}
Expand description
A 3-dimensional point.
Fields§
§x: f64
§y: f64
§z: f64
Implementations§
Trait Implementations§
source§impl AddAssign<Vec3> for Point3
impl AddAssign<Vec3> for Point3
source§fn add_assign(&mut self, rhs: Vec3)
fn add_assign(&mut self, rhs: Vec3)
Performs the
+=
operation. Read moresource§impl AddAssign for Point3
impl AddAssign for Point3
source§fn add_assign(&mut self, rhs: Point3)
fn add_assign(&mut self, rhs: Point3)
Performs the
+=
operation. Read moresource§impl DivAssign<f64> for Point3
impl DivAssign<f64> for Point3
source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moresource§impl MulAssign<f64> for Point3
impl MulAssign<f64> for Point3
source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moresource§impl PartialEq for Point3
impl PartialEq for Point3
source§impl SubAssign<Vec3> for Point3
impl SubAssign<Vec3> for Point3
source§fn sub_assign(&mut self, rhs: Vec3)
fn sub_assign(&mut self, rhs: Vec3)
Performs the
-=
operation. Read moreimpl Copy for Point3
impl StructuralPartialEq for Point3
Auto Trait Implementations§
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
§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()
.