[−][src]Struct diffgeom::coordinates::Point
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,
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]
T: CoordinateSystem,
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> PartialEq<Point<T>> for Point<T> where
T: CoordinateSystem, [src]
T: CoordinateSystem,
fn eq(&self, rhs: &Point<T>) -> bool[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<T> Clone for Point<T> where
T: CoordinateSystem, [src]
T: CoordinateSystem,
fn clone(&self) -> Point<T>[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]
T: CoordinateSystem,
impl<T> Index<usize> for Point<T> where
T: CoordinateSystem, [src]
T: CoordinateSystem,
impl<T> IndexMut<usize> for Point<T> where
T: CoordinateSystem, [src]
T: CoordinateSystem,
Auto Trait Implementations
impl<T> Send for Point<T> where
<T as CoordinateSystem>::Dimension: ArrayLength<f64>,
<T as CoordinateSystem>::Dimension: ArrayLength<f64>,
impl<T> Sync for Point<T> where
<T as CoordinateSystem>::Dimension: ArrayLength<f64>,
<T as CoordinateSystem>::Dimension: ArrayLength<f64>,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Same for T
type Output = T
Should always be Self