[][src]Struct finiteelement::geometry::Vector

#[repr(C)]
pub struct Vector<F: Float> {
    pub x: F,
    pub y: F,
    pub z: F,
}

Represents the difference between two Points

Fields

x: F

x coordinate

y: F

y coordinate

z: F

z coordinate

Methods

impl<F: Float> Vector<F>[src]

pub fn norm(&self) -> F[src]

Returns the Euclidian norm of self.

pub fn norm2(&self) -> F[src]

Returns the square of the Euclidian norm of self.

Trait Implementations

impl<F: Clone + Float> Clone for Vector<F>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<F: Copy + Float> Copy for Vector<F>[src]

impl<F: Debug + Float> Debug for Vector<F>[src]

impl<F: Float> Add<Vector<F>> for Point<F>[src]

type Output = Point<F>

The resulting type after applying the + operator.

impl<F: Float> Add<Vector<F>> for Vector<F>[src]

type Output = Vector<F>

The resulting type after applying the + operator.

impl<F: Float> Sub<Vector<F>> for Vector<F>[src]

type Output = Vector<F>

The resulting type after applying the - operator.

impl<F: Float> Mul<Vector<F>> for f32[src]

type Output = Vector<F>

The resulting type after applying the * operator.

impl<F: Float> Mul<Vector<F>> for f64[src]

type Output = Vector<F>

The resulting type after applying the * operator.

impl<F: Float> Mul<F> for Vector<F>[src]

type Output = Vector<F>

The resulting type after applying the * operator.

impl<F: Float> Div<F> for Vector<F>[src]

type Output = Vector<F>

The resulting type after applying the / operator.

impl<F: Float> Neg for Vector<F>[src]

type Output = Vector<F>

The resulting type after applying the - operator.

impl<F: Float> AddAssign<Vector<F>> for Point<F>[src]

impl<F: Float> AddAssign<Vector<F>> for Vector<F>[src]

impl<F: Float> SubAssign<Vector<F>> for Vector<F>[src]

impl<F: Float> Index<usize> for Vector<F>[src]

type Output = F

The returned type after indexing.

impl<F: Float> IndexMut<usize> for Vector<F>[src]

impl<F: Float> Serialize for Vector<F> where
    F: Serialize
[src]

impl<'de, F: Float> Deserialize<'de> for Vector<F> where
    F: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<F> Unpin for Vector<F> where
    F: Unpin

impl<F> Sync for Vector<F> where
    F: Sync

impl<F> Send for Vector<F> where
    F: Send

impl<F> RefUnwindSafe for Vector<F> where
    F: RefUnwindSafe

impl<F> UnwindSafe for Vector<F> where
    F: UnwindSafe

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]