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
[src]
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]
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::ArrayType: Copy
[src]
impl<T> Index<usize> for Point<T> where T: CoordinateSystem
[src]
type Output = f64
The returned type after indexing
fn index(&self, idx: usize) -> &f64
The method for the indexing (Foo[Bar]
) operation
impl<T> IndexMut<usize> for Point<T> where T: CoordinateSystem
[src]
impl<T> PartialEq<Point<T>> for Point<T> where T: CoordinateSystem
[src]
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 !=
.