[−][src]Struct kdt::point::Point
Trait Implementations
impl<T: Clone + PartialOrd + PartialEq, const DIM: usize> Clone for Point<T, DIM>
[src]
impl<T: Debug + PartialOrd + PartialEq + Clone, const DIM: usize> Debug for Point<T, DIM>
[src]
impl<F: Float, const DIM: usize> FloatPoint<F, DIM> for Point<F, DIM>
[src]
pub fn squared_eucledian(&self, other: &Self) -> F
[src]
Returns the squared euclidean distance between two points.
pub fn distance_to_space(
&self,
min_bounds: &[F; DIM],
max_bounds: &[F; DIM]
) -> F
[src]
&self,
min_bounds: &[F; DIM],
max_bounds: &[F; DIM]
) -> F
impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> From<[T; DIM]> for Point<T, DIM>
[src]
impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> Index<usize> for Point<T, DIM>
[src]
type Output = T
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> IndexMut<usize> for Point<T, DIM>
[src]
impl<I: PrimInt + ToPrimitive, const DIM: usize> IntPoint for Point<I, DIM>
[src]
pub fn squared_eucledian(&self, other: Self) -> f64
[src]
impl<T: PartialEq + PartialOrd + Clone, const DIM: usize> PartialEq<Point<T, DIM>> for Point<T, DIM>
[src]
pub fn eq(&self, other: &Point<T, DIM>) -> bool
[src]
pub fn ne(&self, other: &Point<T, DIM>) -> bool
[src]
impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> PartialOrd<Point<T, DIM>> for Point<T, DIM>
[src]
pub fn partial_cmp(&self, other: &Point<T, DIM>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Point<T, DIM>) -> bool
[src]
pub fn le(&self, other: &Point<T, DIM>) -> bool
[src]
pub fn gt(&self, other: &Point<T, DIM>) -> bool
[src]
pub fn ge(&self, other: &Point<T, DIM>) -> bool
[src]
impl<T: PartialOrd + PartialEq + Clone, const DIM: usize> StructuralPartialEq for Point<T, DIM>
[src]
Auto Trait Implementations
impl<T, const DIM: usize> RefUnwindSafe for Point<T, DIM> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T, const DIM: usize> Send for Point<T, DIM> where
T: Send,
[src]
T: Send,
impl<T, const DIM: usize> Sync for Point<T, DIM> where
T: Sync,
[src]
T: Sync,
impl<T, const DIM: usize> Unpin for Point<T, DIM> where
T: Unpin,
[src]
T: Unpin,
impl<T, const DIM: usize> UnwindSafe for Point<T, DIM> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,