Struct rgeometry::data::Point [−][src]
Fields
array: [T; N]
Implementations
impl<T: Clone, const N: usize> Point<T, N>
[src]
impl<T: Clone, const N: usize> Point<T, N>
[src]pub fn new(array: [T; N]) -> Point<T, N>
[src]
pub fn new_nn(array: [T; N]) -> Point<NotNan<T>, N> where
T: Float,
[src]
pub fn new_nn(array: [T; N]) -> Point<NotNan<T>, N> where
T: Float,
[src]Panics
Panics if any of the inputs are NaN.
pub fn as_vec(&self) -> &Vector<T, N>
[src]
pub fn cmp_distance_to(&self, p: &Point<T, N>, q: &Point<T, N>) -> Ordering where
T: Clone + Zero + Ord + NumOps,
[src]
T: Clone + Zero + Ord + NumOps,
pub fn squared_euclidean_distance(&self, rhs: &Point<T, N>) -> T where
T: Clone + Zero + NumOps,
[src]
T: Clone + Zero + NumOps,
pub fn zero() -> Self where
T: Zero,
[src]
T: Zero,
pub fn cast<U, F>(&self, f: F) -> Point<U, N> where
F: Fn(T) -> U,
[src]
F: Fn(T) -> U,
impl<T> Point<T, 2>
[src]
impl<T> Point<T, 2>
[src]pub fn orientation(&self, q: &Point<T, 2>, r: &Point<T, 2>) -> Orientation where
T: Clone + NumOps + Ord,
[src]
T: Clone + NumOps + Ord,
pub fn ccw_cmp_around(&self, p: &Point<T, 2>, q: &Point<T, 2>) -> Ordering where
T: Clone + Ord + NumOps + Zero + One + Neg<Output = T>,
[src]
pub fn ccw_cmp_around(&self, p: &Point<T, 2>, q: &Point<T, 2>) -> Ordering where
T: Clone + Ord + NumOps + Zero + One + Neg<Output = T>,
[src]Docs?
pub fn ccw_cmp_around_with(
&self,
z: &Vector<T, 2>,
p: &Point<T, 2>,
q: &Point<T, 2>
) -> Ordering where
T: Clone + Ord + NumOps + Neg<Output = T>,
[src]
&self,
z: &Vector<T, 2>,
p: &Point<T, 2>,
q: &Point<T, 2>
) -> Ordering where
T: Clone + Ord + NumOps + Neg<Output = T>,
Trait Implementations
impl<T, const N: usize> Add<&'_ Vector<T, N>> for Point<T, N> where
&'a T: Add<&'a T, Output = T>,
[src]
impl<T, const N: usize> Add<&'_ Vector<T, N>> for Point<T, N> where
&'a T: Add<&'a T, Output = T>,
[src]impl<'a, 'b, T, const N: usize> Add<&'a Vector<T, N>> for &'b Point<T, N> where
&'c T: Add<&'c T, Output = T>,
[src]
impl<'a, 'b, T, const N: usize> Add<&'a Vector<T, N>> for &'b Point<T, N> where
&'c T: Add<&'c T, Output = T>,
[src]impl<T, const N: usize> Add<Vector<T, N>> for Point<T, N> where
&'a T: Add<&'a T, Output = T>,
[src]
impl<T, const N: usize> Add<Vector<T, N>> for Point<T, N> where
&'a T: Add<&'a T, Output = T>,
[src]impl<T, const N: usize> AddAssign<&'_ Vector<T, N>> for Point<T, N> where
T: AddAssign<&'a T>,
[src]
impl<T, const N: usize> AddAssign<&'_ Vector<T, N>> for Point<T, N> where
T: AddAssign<&'a T>,
[src]fn add_assign(&mut self, other: &Vector<T, N>)
[src]
fn add_assign(&mut self, other: &Vector<T, N>)
[src]Performs the +=
operation. Read more
impl<T, const N: usize> AddAssign<Vector<T, N>> for Point<T, N> where
T: AddAssign<&'a T>,
[src]
impl<T, const N: usize> AddAssign<Vector<T, N>> for Point<T, N> where
T: AddAssign<&'a T>,
[src]fn add_assign(&mut self, other: Vector<T, N>)
[src]
fn add_assign(&mut self, other: Vector<T, N>)
[src]Performs the +=
operation. Read more
impl<'a, T, const N: usize> From<&'a Point<T, N>> for VectorView<'a, T, N>
[src]
impl<'a, T, const N: usize> From<&'a Point<T, N>> for VectorView<'a, T, N>
[src]fn from(point: &Point<T, N>) -> VectorView<'_, T, N>
[src]
fn from(point: &Point<T, N>) -> VectorView<'_, T, N>
[src]Performs the conversion.
impl<'a, 'b, T, const N: usize> Mul<&'b Point<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
[src]
impl<'a, 'b, T, const N: usize> Mul<&'b Point<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
[src]impl<'a, T, const N: usize> Mul<Point<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
[src]
impl<'a, T, const N: usize> Mul<Point<T, N>> for &'a Transform<T, N> where
T: TransformScalar,
[src]impl<T: Ord, const N: usize> Ord for Point<T, N>
[src]
impl<T: Ord, const N: usize> Ord for Point<T, N>
[src]impl<T: PartialOrd, const N: usize> PartialOrd<Point<T, N>> for Point<T, N>
[src]
impl<T: PartialOrd, const N: usize> PartialOrd<Point<T, N>> for Point<T, N>
[src]fn partial_cmp(&self, other: &Point<T, N>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Point<T, N>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a, 'b, T, const N: usize> Sub<&'a Point<T, N>> for &'b Point<T, N> where
T: Sub<T, Output = T> + Clone,
[src]
impl<'a, 'b, T, const N: usize> Sub<&'a Point<T, N>> for &'b Point<T, N> where
T: Sub<T, Output = T> + Clone,
[src]impl<T: Copy, const N: usize> Copy for Point<T, N>
[src]
impl<T: Eq, const N: usize> Eq for Point<T, N>
[src]
impl<T, const N: usize> StructuralEq for Point<T, N>
[src]
impl<T, const N: usize> StructuralPartialEq for Point<T, N>
[src]
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for Point<T, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, const N: usize> Send for Point<T, N> where
T: Send,
T: Send,
impl<T, const N: usize> Sync for Point<T, N> where
T: Sync,
T: Sync,
impl<T, const N: usize> Unpin for Point<T, N> where
T: Unpin,
T: Unpin,
impl<T, const N: usize> UnwindSafe for Point<T, N> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T, Rhs, Output> PolygonScalarRef<Rhs, Output> for T where
T: Clone + NumOps<Rhs, Output>,
[src]
T: Clone + NumOps<Rhs, Output>,