pub struct Vector3 {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
3-component vector. Maps to Foam::vector (Foam::Vector<scalar>).
Component layout: x, y, z.
Fields§
§x: f64§y: f64§z: f64Implementations§
Source§impl Vector3
impl Vector3
Sourcepub fn remove_collinear(self, unit_vec: Self) -> Self
pub fn remove_collinear(self, unit_vec: Self) -> Self
Remove the component collinear with unit_vec: self - (self·unit) * unit.
Trait Implementations§
Source§impl AddAssign for Vector3
impl AddAssign for Vector3
Source§fn add_assign(&mut self, r: Self)
fn add_assign(&mut self, r: Self)
Performs the
+= operation. Read moreimpl Copy for Vector3
Source§impl DivAssign<f64> for Vector3
impl DivAssign<f64> for Vector3
Source§fn div_assign(&mut self, s: f64)
fn div_assign(&mut self, s: f64)
Performs the
/= operation. Read moreSource§impl MulAssign<f64> for Vector3
impl MulAssign<f64> for Vector3
Source§fn mul_assign(&mut self, s: f64)
fn mul_assign(&mut self, s: f64)
Performs the
*= operation. Read moreimpl StructuralPartialEq for Vector3
Auto Trait Implementations§
impl Freeze for Vector3
impl RefUnwindSafe for Vector3
impl Send for Vector3
impl Sync for Vector3
impl Unpin for Vector3
impl UnsafeUnpin for Vector3
impl UnwindSafe for Vector3
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