[−][src]Struct nbody_barnes_hut::vector_2d::Vector2D
Fields
x: f64
y: f64
Implementations
impl Vector2D
[src]
pub const ZERO: Vector2D
[src]
pub fn new(x: f64, y: f64) -> Self
[src]
pub fn dist_squared(self) -> f64
[src]
pub fn normalize(self) -> Self
[src]
Trait Implementations
impl Add<Vector2D> for Vector2D
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl AddAssign<Vector2D> for Vector2D
[src]
fn add_assign(&mut self, other: Self)
[src]
impl Clone for Vector2D
[src]
impl Copy for Vector2D
[src]
impl Debug for Vector2D
[src]
impl Div<f64> for Vector2D
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Self
[src]
impl Mul<Vector2D> for f64
[src]
type Output = Vector2D
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector2D) -> Vector2D
[src]
impl Mul<f64> for Vector2D
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self
[src]
impl PartialEq<Vector2D> for Vector2D
[src]
impl StructuralPartialEq for Vector2D
[src]
impl Sub<Vector2D> for Vector2D
[src]
Auto Trait Implementations
impl RefUnwindSafe for Vector2D
impl Send for Vector2D
impl Sync for Vector2D
impl Unpin for Vector2D
impl UnwindSafe for Vector2D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,