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

pub struct Point<T: CoordinateSystem> {
    // some 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

fn new(coords: GenericArray<f64, T::Dimension>) -> Point<T>

Creates a new point with coordinates described by the array

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

Creates a new point with coordinates passed in the slice

Trait Implementations

impl<T> Clone for Point<T> where T: CoordinateSystem

fn clone(&self) -> Point<T>

fn clone_from(&mut self, source: &Self)

impl<T> Copy for Point<T> where T: CoordinateSystem, T::Dimension::ArrayType: Copy

impl<T> Index<usize> for Point<T> where T: CoordinateSystem

type Output = f64

fn index(&self, idx: usize) -> &f64

impl<T> IndexMut<usize> for Point<T> where T: CoordinateSystem

fn index_mut(&mut self, idx: usize) -> &mut f64

impl<T> PartialEq<Point<T>> for Point<T> where T: CoordinateSystem

fn eq(&self, rhs: &Point<T>) -> bool

fn ne(&self, other: &Rhs) -> bool

impl<T> Eq for Point<T> where T: CoordinateSystem