Struct solstice_2d::Point3D[][src]

pub struct Point3D {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

Fields

x: f32y: f32z: f32

Implementations

impl Point3D[src]

pub fn new(x: f32, y: f32, z: f32) -> Self[src]

pub fn length(&self) -> f32[src]

pub fn lerp(&self, other: &Point3D, ratio: f32) -> Point3D[src]

pub fn normalize(&self) -> Point3D[src]

pub fn divide_scalar(&self, scalar: f32) -> Point3D[src]

pub fn multiply_scalar(&self, scalar: f32) -> Point3D[src]

Trait Implementations

impl Clone for Point3D[src]

impl Copy for Point3D[src]

impl Debug for Point3D[src]

impl Default for Point3D[src]

impl PartialEq<Point3D> for Point3D[src]

impl PartialOrd<Point3D> for Point3D[src]

impl StructuralPartialEq for Point3D[src]

Auto Trait Implementations

impl RefUnwindSafe for Point3D

impl Send for Point3D

impl Sync for Point3D

impl Unpin for Point3D

impl UnwindSafe for Point3D

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,