pub struct Vector3D {
pub x: f64,
pub y: f64,
pub z: f64,
}Fields§
§x: f64§y: f64§z: f64Implementations§
Source§impl Vector3D
impl Vector3D
Sourcepub fn scalar_multiply(&self, scalar: f64) -> Vector3D
pub fn scalar_multiply(&self, scalar: f64) -> Vector3D
Sourcepub fn cross_product(&self, other: &Vector3D) -> Vector3D
pub fn cross_product(&self, other: &Vector3D) -> Vector3D
Sourcepub fn dot_product(&self, other: &Vector3D) -> f64
pub fn dot_product(&self, other: &Vector3D) -> f64
Sourcepub fn angle_between(&self, other: &Vector3D) -> f64
pub fn angle_between(&self, other: &Vector3D) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vector3D
impl RefUnwindSafe for Vector3D
impl Send for Vector3D
impl Sync for Vector3D
impl Unpin for Vector3D
impl UnwindSafe for Vector3D
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