[−][src]Struct aljabar::Point
A point in space.
Methods
impl<T, const N: usize> Point<T, { N }>
[src]
pub fn from_vec(vec: Vector<T, { N }>) -> Self
[src]
Constructs a point from an appropriately sized vector.
Trait Implementations
impl<T, const N: usize> Clone for Point<T, { N }> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, const N: usize> From<[T; N]> for Point<T, { N }>
[src]
impl<T, const N: usize> Into<[T; N]> for Point<T, { N }>
[src]
impl<T, const N: usize> Copy for Point<T, { N }> where
T: Copy,
[src]
T: Copy,
impl<T, const N: usize> DerefMut for Point<T, { N }>
[src]
impl<T, const N: usize> Debug for Point<T, { N }> where
T: Debug,
[src]
T: Debug,
impl<A, B, const N: usize> Add<Vector<B, N>> for Point<A, { N }> where
A: Add<B>,
[src]
A: Add<B>,
type Output = Point<<A as Add<B>>::Output, { N }>
The resulting type after applying the +
operator.
fn add(self, rhs: Vector<B, { N }>) -> Self::Output
[src]
impl<A, B, const N: usize> Sub<Vector<B, N>> for Point<A, { N }> where
A: Sub<B>,
[src]
A: Sub<B>,
type Output = Point<<A as Sub<B>>::Output, { N }>
The resulting type after applying the -
operator.
fn sub(self, rhs: Vector<B, { N }>) -> Self::Output
[src]
impl<A, B, const N: usize> Sub<Point<B, N>> for Point<A, { N }> where
A: Sub<B>,
[src]
A: Sub<B>,
type Output = Vector<<A as Sub<B>>::Output, { N }>
The resulting type after applying the -
operator.
fn sub(self, rhs: Point<B, { N }>) -> Self::Output
[src]
impl<T, const N: usize> Deref for Point<T, { N }>
[src]
impl<T, const N: usize> Hash for Point<T, { N }> where
T: Hash,
[src]
T: Hash,
Auto Trait Implementations
impl<const N: usize, T> Sync for Point<T, N> where
T: Sync,
T: Sync,
impl<const N: usize, T> Send for Point<T, N> where
T: Send,
T: Send,
impl<const N: usize, T> Unpin for Point<T, N> where
T: Unpin,
T: Unpin,
impl<const N: usize, T> RefUnwindSafe for Point<T, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<const N: usize, T> UnwindSafe for Point<T, N> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,