[][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

Trait Implementations

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

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

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

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

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

Performs copy-assignment from source. Read more

impl<T> Debug 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]

Auto Trait Implementations

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

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

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Same for T

type Output = T

Should always be Self