[−][src]Struct mini_math::Point
A point in 3D space.
Fields
x: f32y: f32z: f32Methods
impl Point[src]
pub fn new(x: f32, y: f32, z: f32) -> Self[src]
Create a new point from x, y, z coordinates
pub fn zero() -> Self[src]
The additive identity
pub fn one() -> Self[src]
The multiplicative identity
Trait Implementations
impl<'_> NearlyEqual for &'_ Point[src]
fn nearly_equals(self, rhs: Self) -> bool[src]
impl From<Vector> for Point[src]
impl From<Point> for Vector[src]
impl Clone for Point[src]
impl Copy for Point[src]
impl PartialEq<Point> for Point[src]
impl Debug for Point[src]
impl Div<f32> for Point[src]
type Output = Point
The resulting type after applying the / operator.
fn div(self, rhs: f32) -> Point[src]
impl Sub<f32> for Point[src]
type Output = Point
The resulting type after applying the - operator.
fn sub(self, rhs: f32) -> Point[src]
impl Sub<Vector> for Point[src]
type Output = Point
The resulting type after applying the - operator.
fn sub(self, rhs: Vector) -> Point[src]
impl Sub<Point> for Point[src]
type Output = Vector
The resulting type after applying the - operator.
fn sub(self, rhs: Point) -> Vector[src]
impl Add<f32> for Point[src]
type Output = Point
The resulting type after applying the + operator.
fn add(self, rhs: f32) -> Point[src]
impl Add<Vector> for Point[src]
type Output = Point
The resulting type after applying the + operator.
fn add(self, rhs: Vector) -> Point[src]
impl Mul<Point> for Matrix[src]
type Output = Point
The resulting type after applying the * operator.
fn mul(self, rhs: Point) -> Point[src]
impl Mul<f32> for Point[src]
type Output = Point
The resulting type after applying the * operator.
fn mul(self, rhs: f32) -> Point[src]
impl AddAssign<f32> for Point[src]
fn add_assign(&mut self, rhs: f32)[src]
impl AddAssign<Vector> for Point[src]
fn add_assign(&mut self, rhs: Vector)[src]
impl SubAssign<f32> for Point[src]
fn sub_assign(&mut self, rhs: f32)[src]
impl SubAssign<Vector> for Point[src]
fn sub_assign(&mut self, rhs: Vector)[src]
impl MulAssign<f32> for Point[src]
fn mul_assign(&mut self, rhs: f32)[src]
impl DivAssign<f32> for Point[src]
fn div_assign(&mut self, rhs: f32)[src]
impl StructuralPartialEq for Point[src]
impl AsBytes for Point[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized, [src]
Self: Sized,
fn as_bytes(&self) -> &[u8][src]
fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes, [src]
Self: FromBytes,
impl FromBytes for Point[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized, [src]
Self: Sized,
Auto Trait Implementations
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
impl RefUnwindSafe for Point
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,