[][src]Struct diffgeom::coordinates::Point

pub struct Point<T: CoordinateSystem> { /* fields omitted */ }

Struct representing a point on the manifold. The information about the coordinate system is saved in the type parameter, so that only operations on objects belonging to the same coordinate system will be allowed.

Methods

impl<T> Point<T> where
    T: CoordinateSystem
[src]

pub fn new(coords: GenericArray<f64, T::Dimension>) -> Point<T>[src]

Creates a new point with coordinates described by the array

pub fn from_slice(coords: &[f64]) -> Point<T>[src]

Creates a new point with coordinates passed in the slice

pub fn coords_array(&self) -> &GenericArray<f64, T::Dimension>[src]

Returns the point's coordinates as an array

Trait Implementations

impl<T> PartialEq<Point<T>> for Point<T> where
    T: CoordinateSystem
[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl<T> Clone for Point<T> where
    T: CoordinateSystem
[src]

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

Performs copy-assignment from source. Read more

impl<T> Copy for Point<T> where
    T: CoordinateSystem,
    <T::Dimension as ArrayLength<f64>>::ArrayType: Copy
[src]

impl<T> Eq for Point<T> where
    T: CoordinateSystem
[src]

impl<T> Index<usize> for Point<T> where
    T: CoordinateSystem
[src]

type Output = f64

The returned type after indexing.

impl<T> IndexMut<usize> for Point<T> where
    T: CoordinateSystem
[src]

impl<T> Debug for Point<T> where
    T: CoordinateSystem
[src]

Auto Trait Implementations

impl<T> Sync for Point<T> where
    <T as CoordinateSystem>::Dimension: ArrayLength<f64>, 

impl<T> Unpin for Point<T> where
    <<T as CoordinateSystem>::Dimension as ArrayLength<f64>>::ArrayType: Unpin

impl<T> Send for Point<T> where
    <T as CoordinateSystem>::Dimension: ArrayLength<f64>, 

impl<T> UnwindSafe for Point<T> where
    <<T as CoordinateSystem>::Dimension as ArrayLength<f64>>::ArrayType: UnwindSafe

impl<T> RefUnwindSafe for Point<T> where
    <<T as CoordinateSystem>::Dimension as ArrayLength<f64>>::ArrayType: RefUnwindSafe

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for 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> Same<T> for T

type Output = T

Should always be Self