pub struct Point<T: CoordinateSystem> { /* private fields */ }
Expand description
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.
Implementations§
Source§impl<T> Point<T>where
T: CoordinateSystem,
impl<T> Point<T>where
T: CoordinateSystem,
Sourcepub fn new(coords: GenericArray<f64, T::Dimension>) -> Point<T>
pub fn new(coords: GenericArray<f64, T::Dimension>) -> Point<T>
Creates a new point with coordinates described by the array
Sourcepub fn from_slice(coords: &[f64]) -> Point<T>
pub fn from_slice(coords: &[f64]) -> Point<T>
Creates a new point with coordinates passed in the slice
Sourcepub fn coords_array(&self) -> &GenericArray<f64, T::Dimension>
pub fn coords_array(&self) -> &GenericArray<f64, T::Dimension>
Returns the point’s coordinates as an array
Trait Implementations§
Source§impl<T> Clone for Point<T>where
T: CoordinateSystem,
impl<T> Clone for Point<T>where
T: CoordinateSystem,
Source§impl<T> Debug for Point<T>where
T: CoordinateSystem,
impl<T> Debug for Point<T>where
T: CoordinateSystem,
Source§impl<T> PartialEq for Point<T>where
T: CoordinateSystem,
impl<T> PartialEq for Point<T>where
T: CoordinateSystem,
impl<T> Copy for Point<T>
impl<T> Eq for Point<T>where
T: CoordinateSystem,
Auto Trait Implementations§
impl<T> Freeze for Point<T>
impl<T> RefUnwindSafe for Point<T>
impl<T> Send for Point<T>
impl<T> Sync for Point<T>
impl<T> Unpin for Point<T>
impl<T> UnwindSafe for Point<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more