Struct diffgeom::coordinates::Point
[−]
[src]
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]
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,
[src]
T: CoordinateSystem,
fn clone(&self) -> Point<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> Copy for Point<T> where
T: CoordinateSystem,
<T::Dimension as ArrayLength<f64>>::ArrayType: Copy,
[src]
T: CoordinateSystem,
<T::Dimension as ArrayLength<f64>>::ArrayType: Copy,
impl<T> Index<usize> for Point<T> where
T: CoordinateSystem,
[src]
T: CoordinateSystem,
type Output = f64
The returned type after indexing
fn index(&self, idx: usize) -> &f64
The method for the indexing (container[index]
) operation
impl<T> IndexMut<usize> for Point<T> where
T: CoordinateSystem,
[src]
T: CoordinateSystem,
fn index_mut(&mut self, idx: usize) -> &mut f64
The method for the mutable indexing (container[index]
) operation
impl<T> PartialEq<Point<T>> for Point<T> where
T: CoordinateSystem,
[src]
T: CoordinateSystem,
fn eq(&self, rhs: &Point<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<T> Eq for Point<T> where
T: CoordinateSystem,
[src]
T: CoordinateSystem,