[−][src]Struct finiteelement::geometry::Vector
Represents the difference between two Point
s
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(&self) -> 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.
fn add(self, b: Vector<F>) -> Self::Output
[src]
impl<F: Float> Add<Vector<F>> for Vector<F>
[src]
type Output = Vector<F>
The resulting type after applying the +
operator.
fn add(self, b: Vector<F>) -> Self::Output
[src]
impl<F: Float> Sub<Vector<F>> for Vector<F>
[src]
type Output = Vector<F>
The resulting type after applying the -
operator.
fn sub(self, b: Vector<F>) -> Self::Output
[src]
impl<F: Float> Mul<Vector<F>> for f32
[src]
type Output = Vector<F>
The resulting type after applying the *
operator.
fn mul(self, b: Vector<F>) -> Self::Output
[src]
impl<F: Float> Mul<Vector<F>> for f64
[src]
type Output = Vector<F>
The resulting type after applying the *
operator.
fn mul(self, b: Vector<F>) -> Self::Output
[src]
impl<F: Float> Mul<F> for Vector<F>
[src]
type Output = Vector<F>
The resulting type after applying the *
operator.
fn mul(self, b: F) -> Self::Output
[src]
impl<F: Float> Div<F> for Vector<F>
[src]
type Output = Vector<F>
The resulting type after applying the /
operator.
fn div(self, b: F) -> Self::Output
[src]
impl<F: Float> Neg for Vector<F>
[src]
type Output = Vector<F>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<F: Float> AddAssign<Vector<F>> for Point<F>
[src]
fn add_assign(&mut self, b: Vector<F>)
[src]
impl<F: Float> AddAssign<Vector<F>> for Vector<F>
[src]
fn add_assign(&mut self, b: Vector<F>)
[src]
impl<F: Float> SubAssign<Vector<F>> for Vector<F>
[src]
fn sub_assign(&mut self, b: Vector<F>)
[src]
impl<F: Float> Index<usize> for Vector<F>
[src]
impl<F: Float> IndexMut<usize> for Vector<F>
[src]
impl<F: Float> Serialize for Vector<F> where
F: Serialize,
[src]
F: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, F: Float> Deserialize<'de> for Vector<F> where
F: Deserialize<'de>,
[src]
F: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<F> Unpin for Vector<F> where
F: Unpin,
F: Unpin,
impl<F> Sync for Vector<F> where
F: Sync,
F: Sync,
impl<F> Send for Vector<F> where
F: Send,
F: Send,
impl<F> RefUnwindSafe for Vector<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> UnwindSafe for Vector<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,