Struct oxygengine_physics_2d::prelude::nalgebra::Point [−][src]
#[repr(C)]pub struct Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>, { pub coords: Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>, }
A point in a n-dimensional euclidean space.
Fields
coords: Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
The coordinates of this point, i.e., the shift from the origin.
Implementations
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]pub fn to_homogeneous(
&self
) -> Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer> where
N: One,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
[src]
&self
) -> Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer> where
N: One,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
Converts this point into a vector in homogeneous coordinates, i.e., appends a 1
at the
end of it.
This is the same as .into()
.
Example
let p = Point2::new(10.0, 20.0); assert_eq!(p.to_homogeneous(), Vector3::new(10.0, 20.0, 1.0)); // This works in any dimension. let p = Point3::new(10.0, 20.0, 30.0); assert_eq!(p.to_homogeneous(), Vector4::new(10.0, 20.0, 30.0, 1.0));
pub fn from_coordinates(
coords: Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
) -> Point<N, D>
[src]
coords: Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
) -> Point<N, D>
Use Point::from(vector) instead.
Creates a new point with the given coordinates.
pub fn len(&self) -> usize
[src]
The dimension of this point.
Example
let p = Point2::new(1.0, 2.0); assert_eq!(p.len(), 2); // This works in any dimension. let p = Point3::new(10.0, 20.0, 30.0); assert_eq!(p.len(), 3);
pub fn stride(&self) -> usize
[src]
This methods is no longer significant and will always return 1.
The stride of this point. This is the number of buffer element separating each component of this point.
pub fn iter(
&self
) -> MatrixIter<'_, N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>ⓘNotable traits for MatrixIter<'a, N, R, C, S>
impl<'a, N, R, C, S> Iterator for MatrixIter<'a, N, R, C, S> where
C: Dim,
N: Scalar,
S: 'a + Storage<N, R, C>,
R: Dim, type Item = &'a N;
[src]
&self
) -> MatrixIter<'_, N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>ⓘ
Notable traits for MatrixIter<'a, N, R, C, S>
impl<'a, N, R, C, S> Iterator for MatrixIter<'a, N, R, C, S> where
C: Dim,
N: Scalar,
S: 'a + Storage<N, R, C>,
R: Dim, type Item = &'a N;
Iterates through this point coordinates.
Example
let p = Point3::new(1.0, 2.0, 3.0); let mut it = p.iter().cloned(); assert_eq!(it.next(), Some(1.0)); assert_eq!(it.next(), Some(2.0)); assert_eq!(it.next(), Some(3.0)); assert_eq!(it.next(), None);
pub unsafe fn get_unchecked(&self, i: usize) -> &N
[src]
Gets a reference to i-th element of this point without bound-checking.
pub fn iter_mut(
&mut self
) -> MatrixIterMut<'_, N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>ⓘNotable traits for MatrixIterMut<'a, N, R, C, S>
impl<'a, N, R, C, S> Iterator for MatrixIterMut<'a, N, R, C, S> where
C: Dim,
N: Scalar,
S: 'a + StorageMut<N, R, C>,
R: Dim, type Item = &'a mut N;
[src]
&mut self
) -> MatrixIterMut<'_, N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>ⓘ
Notable traits for MatrixIterMut<'a, N, R, C, S>
impl<'a, N, R, C, S> Iterator for MatrixIterMut<'a, N, R, C, S> where
C: Dim,
N: Scalar,
S: 'a + StorageMut<N, R, C>,
R: Dim, type Item = &'a mut N;
Mutably iterates through this point coordinates.
Example
let mut p = Point3::new(1.0, 2.0, 3.0); for e in p.iter_mut() { *e *= 10.0; } assert_eq!(p, Point3::new(10.0, 20.0, 30.0));
pub unsafe fn get_unchecked_mut(&mut self, i: usize) -> &mut N
[src]
Gets a mutable reference to i-th element of this point without bound-checking.
pub unsafe fn swap_unchecked(&mut self, i1: usize, i2: usize)
[src]
Swaps two entries without bound-checking.
impl<N, D> Point<N, D> where
N: Scalar + SimdPartialOrd,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Point<N, D> where
N: Scalar + SimdPartialOrd,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]pub fn inf(&self, other: &Point<N, D>) -> Point<N, D>
[src]
Computes the infimum (aka. componentwise min) of two points.
pub fn sup(&self, other: &Point<N, D>) -> Point<N, D>
[src]
Computes the supremum (aka. componentwise max) of two points.
pub fn inf_sup(&self, other: &Point<N, D>) -> (Point<N, D>, Point<N, D>)
[src]
Computes the (infimum, supremum) of two points.
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]pub unsafe fn new_uninitialized() -> Point<N, D>
[src]
Creates a new point with uninitialized coordinates.
pub fn origin() -> Point<N, D> where
N: Zero,
[src]
N: Zero,
Creates a new point with all coordinates equal to zero.
Example
// This works in any dimension. // The explicit crate::<f32> type annotation may not always be needed, // depending on the context of type inference. let pt = Point2::<f32>::origin(); assert!(pt.x == 0.0 && pt.y == 0.0); let pt = Point3::<f32>::origin(); assert!(pt.x == 0.0 && pt.y == 0.0 && pt.z == 0.0);
pub fn from_slice(components: &[N]) -> Point<N, D>
[src]
Creates a new point from a slice.
Example
let data = [ 1.0, 2.0, 3.0 ]; let pt = Point2::from_slice(&data[..2]); assert_eq!(pt, Point2::new(1.0, 2.0)); let pt = Point3::from_slice(&data); assert_eq!(pt, Point3::new(1.0, 2.0, 3.0));
pub fn from_homogeneous(
v: Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
) -> Option<Point<N, D>> where
N: Scalar + Zero + One + ClosedDiv<N>,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
[src]
v: Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
) -> Option<Point<N, D>> where
N: Scalar + Zero + One + ClosedDiv<N>,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
Creates a new point from its homogeneous vector representation.
In practice, this builds a D-dimensional points with the same first D component as v
divided by the last component of v
. Returns None
if this divisor is zero.
Example
let coords = Vector4::new(1.0, 2.0, 3.0, 1.0); let pt = Point3::from_homogeneous(coords); assert_eq!(pt, Some(Point3::new(1.0, 2.0, 3.0))); // All component of the result will be divided by the // last component of the vector, here 2.0. let coords = Vector4::new(1.0, 2.0, 3.0, 2.0); let pt = Point3::from_homogeneous(coords); assert_eq!(pt, Some(Point3::new(0.5, 1.0, 1.5))); // Fails because the last component is zero. let coords = Vector4::new(1.0, 2.0, 3.0, 0.0); let pt = Point3::from_homogeneous(coords); assert!(pt.is_none()); // Works also in other dimensions. let coords = Vector3::new(1.0, 2.0, 1.0); let pt = Point2::from_homogeneous(coords); assert_eq!(pt, Some(Point2::new(1.0, 2.0)));
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<D as DimName>::Value: Cmp<UTerm>,
<<D as DimName>::Value as Cmp<UTerm>>::Output == Greater,
[src]
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<D as DimName>::Value: Cmp<UTerm>,
<<D as DimName>::Value as Cmp<UTerm>>::Output == Greater,
[src]impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<D as DimName>::Value: Cmp<UInt<UTerm, B1>>,
<<D as DimName>::Value as Cmp<UInt<UTerm, B1>>>::Output == Greater,
[src]
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<D as DimName>::Value: Cmp<UInt<UTerm, B1>>,
<<D as DimName>::Value as Cmp<UInt<UTerm, B1>>>::Output == Greater,
[src]pub fn xy(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn yx(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn yy(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn xxy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn xyx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn xyy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yxx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yxy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yyx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yyy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<D as DimName>::Value: Cmp<UInt<UInt<UTerm, B1>, B0>>,
<<D as DimName>::Value as Cmp<UInt<UInt<UTerm, B1>, B0>>>::Output == Greater,
[src]
impl<N, D> Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<D as DimName>::Value: Cmp<UInt<UInt<UTerm, B1>, B0>>,
<<D as DimName>::Value as Cmp<UInt<UInt<UTerm, B1>, B0>>>::Output == Greater,
[src]pub fn xz(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn yz(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn zx(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn zy(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn zz(&self) -> Point<N, U2>
[src]
Builds a new point from components of self
.
pub fn xxz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn xyz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn xzx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn xzy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn xzz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yxz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yyz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yzx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yzy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn yzz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zxx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zxy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zxz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zyx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zyy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zyz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zzx(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zzy(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
pub fn zzz(&self) -> Point<N, U3>
[src]
Builds a new point from components of self
.
Trait Implementations
impl<N, D> AbsDiffEq<Point<N, D>> for Point<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, D> AbsDiffEq<Point<N, D>> for Point<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]type Epsilon = <N as AbsDiffEq<N>>::Epsilon
Used for specifying relative comparisons.
pub fn default_epsilon() -> <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon
[src]
pub fn abs_diff_eq(
&self,
other: &Point<N, D>,
epsilon: <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon
) -> bool
[src]
&self,
other: &Point<N, D>,
epsilon: <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon
) -> bool
pub fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
impl<'b, N, D1, D2, SB> Add<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<'b, N, D1, D2, SB> Add<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<'a, 'b, N, D1, D2, SB> Add<&'b Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<'a, 'b, N, D1, D2, SB> Add<&'b Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<'a, N, D1, D2, SB> Add<Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<'a, N, D1, D2, SB> Add<Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<N, D1, D2, SB> Add<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<N, D1, D2, SB> Add<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<'b, N, D1, D2, SB> AddAssign<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]
impl<'b, N, D1, D2, SB> AddAssign<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]pub fn add_assign(&mut self, right: &'b Matrix<N, D2, U1, SB>)
[src]
impl<N, D1, D2, SB> AddAssign<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]
impl<N, D1, D2, SB> AddAssign<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedAdd<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]pub fn add_assign(&mut self, right: Matrix<N, D2, U1, SB>)
[src]
impl<N, D> Bounded for Point<N, D> where
N: Scalar + Bounded,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Bounded for Point<N, D> where
N: Scalar + Bounded,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> Clone for Point<N, D> where
N: Clone + Scalar,
D: Clone + DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Clone for Point<N, D> where
N: Clone + Scalar,
D: Clone + DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> Copy for Point<N, D> where
N: Scalar + Copy,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Copy,
[src]
impl<N, D> Copy for Point<N, D> where
N: Scalar + Copy,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Copy,
[src]impl<N, D> Debug for Point<N, D> where
N: Debug + Scalar,
D: Debug + DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Debug for Point<N, D> where
N: Debug + Scalar,
D: Debug + DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D> Deserialize<'a> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Deserialize<'a>,
[src]
impl<'a, N, D> Deserialize<'a> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Deserialize<'a>,
[src]pub fn deserialize<Des>(
deserializer: Des
) -> Result<Point<N, D>, <Des as Deserializer<'a>>::Error> where
Des: Deserializer<'a>,
[src]
deserializer: Des
) -> Result<Point<N, D>, <Des as Deserializer<'a>>::Error> where
Des: Deserializer<'a>,
impl<N, D> Display for Point<N, D> where
N: Scalar + Display,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Display for Point<N, D> where
N: Scalar + Display,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> Div<N> for Point<N, D> where
N: Scalar + ClosedDiv<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Div<N> for Point<N, D> where
N: Scalar + ClosedDiv<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D> Div<N> for &'a Point<N, D> where
N: Scalar + ClosedDiv<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'a, N, D> Div<N> for &'a Point<N, D> where
N: Scalar + ClosedDiv<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> DivAssign<N> for Point<N, D> where
N: Scalar + ClosedDiv<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> DivAssign<N> for Point<N, D> where
N: Scalar + ClosedDiv<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]pub fn div_assign(&mut self, right: N)
[src]
impl<N, D> Eq for Point<N, D> where
N: Scalar + Eq,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Eq for Point<N, D> where
N: Scalar + Eq,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 16]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 16]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]
impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 16]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 16]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 2]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 2]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]
impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 2]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 2]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 4]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 4]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]
impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 4]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 4]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 8]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 8]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]
impl<N, D> From<[Point<<N as SimdValue>::Element, D>; 8]> for Point<N, D> where
N: Scalar + Copy + PrimitiveSimdValue + From<[<N as SimdValue>::Element; 8]>,
D: DimName,
<N as SimdValue>::Element: Scalar,
<N as SimdValue>::Element: Copy,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
<DefaultAllocator as Allocator<<N as SimdValue>::Element, D, U1>>::Buffer: Copy,
[src]impl<N, D> From<Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> From<Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> From<Point<N, D>> for Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer> where
N: Scalar + Zero + One,
D: DimName + DimNameAdd<U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
[src]
impl<N, D> From<Point<N, D>> for Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer> where
N: Scalar + Zero + One,
D: DimName + DimNameAdd<U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
[src]pub fn from(
t: Point<N, D>
) -> Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
[src]
t: Point<N, D>
) -> Matrix<N, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
impl<N, D> Hash for Point<N, D> where
N: Scalar + Hash,
D: DimName + Hash,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Hash,
[src]
impl<N, D> Hash for Point<N, D> where
N: Scalar + Hash,
D: DimName + Hash,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Hash,
[src]impl<N, D> Index<usize> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Index<usize> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> IndexMut<usize> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> IndexMut<usize> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N> InertiaTensor<N, Point<N, U2>, Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>, Isometry<N, U2, Unit<Complex<N>>>> for Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer> where
N: RealField,
[src]
impl<N> InertiaTensor<N, Point<N, U2>, Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>, Isometry<N, U2, Unit<Complex<N>>>> for Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer> where
N: RealField,
[src]pub fn apply(
&self,
av: &Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
[src]
&self,
av: &Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
pub fn to_world_space(
&self,
&Isometry<N, U2, Unit<Complex<N>>>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
[src]
&self,
&Isometry<N, U2, Unit<Complex<N>>>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
pub fn to_relative_wrt_point(
&self,
mass: N,
pt: &Point<N, U2>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
[src]
&self,
mass: N,
pt: &Point<N, U2>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
impl<N> InertiaTensor<N, Point<N, U3>, Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>, Isometry<N, U3, Unit<Quaternion<N>>>> for Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer> where
N: RealField,
[src]
impl<N> InertiaTensor<N, Point<N, U3>, Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>, Isometry<N, U3, Unit<Quaternion<N>>>> for Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer> where
N: RealField,
[src]pub fn apply(
&self,
av: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
[src]
&self,
av: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
pub fn to_world_space(
&self,
t: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>
[src]
&self,
t: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>
pub fn to_relative_wrt_point(
&self,
mass: N,
pt: &Point<N, U3>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>
[src]
&self,
mass: N,
pt: &Point<N, U3>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>
impl<'a, 'b, N, D, R> Mul<&'b Point<N, D>> for &'a Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'a, 'b, N, D, R> Mul<&'b Point<N, D>> for &'a Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'b, N, D, R> Mul<&'b Point<N, D>> for Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'b, N, D, R> Mul<&'b Point<N, D>> for Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'b, N, D, C> Mul<&'b Point<N, D>> for Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]
impl<'b, N, D, C> Mul<&'b Point<N, D>> for Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]impl<'b, N, D> Mul<&'b Point<N, D>> for Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]
impl<'b, N, D> Mul<&'b Point<N, D>> for Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]impl<'a, 'b, N, D, R> Mul<&'b Point<N, D>> for &'a Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'a, 'b, N, D, R> Mul<&'b Point<N, D>> for &'a Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, 'b, N, D> Mul<&'b Point<N, D>> for &'a Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]
impl<'a, 'b, N, D> Mul<&'b Point<N, D>> for &'a Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]impl<'a, 'b, N, D, C> Mul<&'b Point<N, D>> for &'a Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]
impl<'a, 'b, N, D, C> Mul<&'b Point<N, D>> for &'a Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]impl<'a, 'b, N, D> Mul<&'b Point<N, D>> for &'a Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]
impl<'a, 'b, N, D> Mul<&'b Point<N, D>> for &'a Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]impl<'b, N, D, R> Mul<&'b Point<N, D>> for Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'b, N, D, R> Mul<&'b Point<N, D>> for Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'b, N, D> Mul<&'b Point<N, D>> for Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]
impl<'b, N, D> Mul<&'b Point<N, D>> for Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]impl<'a, 'b, N, R1, C1, D2, SA> Mul<&'b Point<N, D2>> for &'a Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]
impl<'a, 'b, N, R1, C1, D2, SA> Mul<&'b Point<N, D2>> for &'a Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]impl<'b, N, R1, C1, D2, SA> Mul<&'b Point<N, D2>> for Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]
impl<'b, N, R1, C1, D2, SA> Mul<&'b Point<N, D2>> for Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]impl<'b, N> Mul<&'b Point<N, U2>> for Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]
impl<'b, N> Mul<&'b Point<N, U2>> for Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]impl<'a, 'b, N> Mul<&'b Point<N, U2>> for &'a Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]
impl<'a, 'b, N> Mul<&'b Point<N, U2>> for &'a Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]impl<'b, N> Mul<&'b Point<N, U3>> for Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]
impl<'b, N> Mul<&'b Point<N, U3>> for Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]impl<'a, 'b, N> Mul<&'b Point<N, U3>> for &'a Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]
impl<'a, 'b, N> Mul<&'b Point<N, U3>> for &'a Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]impl<N, D> Mul<N> for Point<N, D> where
N: Scalar + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Mul<N> for Point<N, D> where
N: Scalar + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D> Mul<N> for &'a Point<N, D> where
N: Scalar + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'a, N, D> Mul<N> for &'a Point<N, D> where
N: Scalar + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D> Mul<Point<N, D>> for &'a Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]
impl<'a, N, D> Mul<Point<N, D>> for &'a Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]impl<N, D> Mul<Point<N, D>> for Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]
impl<N, D> Mul<Point<N, D>> for Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]impl<N, D, R> Mul<Point<N, D>> for Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D, R> Mul<Point<N, D>> for Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D> Mul<Point<N, D>> for &'a Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]
impl<'a, N, D> Mul<Point<N, D>> for &'a Rotation<N, D> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
ShapeConstraint: AreMultipliable<D, D, D, U1>,
[src]impl<'a, N, D, R> Mul<Point<N, D>> for &'a Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'a, N, D, R> Mul<Point<N, D>> for &'a Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> Mul<Point<N, D>> for Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]
impl<N, D> Mul<Point<N, D>> for Translation<N, D> where
N: Scalar + ClosedAdd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D, D>>::Representative == D,
[src]impl<N, D, C> Mul<Point<N, D>> for Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]
impl<N, D, C> Mul<Point<N, D>> for Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]impl<N, D, R> Mul<Point<N, D>> for Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D, R> Mul<Point<N, D>> for Similarity<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D, R> Mul<Point<N, D>> for &'a Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'a, N, D, R> Mul<Point<N, D>> for &'a Isometry<N, D, R> where
N: SimdRealField,
R: AbstractRotation<N, D>,
D: DimName,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D, C> Mul<Point<N, D>> for &'a Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]
impl<'a, N, D, C> Mul<Point<N, D>> for &'a Transform<N, D, C> where
C: TCategory,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N> + RealField,
D: DimNameAdd<U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N, D, D>,
[src]impl<'a, N, R1, C1, D2, SA> Mul<Point<N, D2>> for &'a Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]
impl<'a, N, R1, C1, D2, SA> Mul<Point<N, D2>> for &'a Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]impl<N, R1, C1, D2, SA> Mul<Point<N, D2>> for Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]
impl<N, R1, C1, D2, SA> Mul<Point<N, D2>> for Matrix<N, R1, C1, SA> where
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
R1: DimName,
D2: DimName,
C1: Dim,
SA: Storage<N, R1, C1>,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: Allocator<N, R1, U1>,
ShapeConstraint: AreMultipliable<R1, C1, D2, U1>,
[src]impl<'a, N> Mul<Point<N, U2>> for &'a Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]
impl<'a, N> Mul<Point<N, U2>> for &'a Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]impl<N> Mul<Point<N, U2>> for Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]
impl<N> Mul<Point<N, U2>> for Unit<Complex<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U2, U1>,
[src]impl<'a, N> Mul<Point<N, U3>> for &'a Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]
impl<'a, N> Mul<Point<N, U3>> for &'a Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]impl<N> Mul<Point<N, U3>> for Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]
impl<N> Mul<Point<N, U3>> for Unit<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
DefaultAllocator: Allocator<N, U4, U1>,
DefaultAllocator: Allocator<N, U3, U1>,
[src]impl<N, D> MulAssign<N> for Point<N, D> where
N: Scalar + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> MulAssign<N> for Point<N, D> where
N: Scalar + ClosedMul<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]pub fn mul_assign(&mut self, right: N)
[src]
impl<N, D> Neg for Point<N, D> where
N: Scalar + ClosedNeg,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> Neg for Point<N, D> where
N: Scalar + ClosedNeg,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<'a, N, D> Neg for &'a Point<N, D> where
N: Scalar + ClosedNeg,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<'a, N, D> Neg for &'a Point<N, D> where
N: Scalar + ClosedNeg,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> PartialEq<Point<N, D>> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> PartialEq<Point<N, D>> for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> PartialOrd<Point<N, D>> for Point<N, D> where
N: Scalar + PartialOrd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> PartialOrd<Point<N, D>> for Point<N, D> where
N: Scalar + PartialOrd<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
[src]impl<N, D> RelativeEq<Point<N, D>> for Point<N, D> where
N: Scalar + RelativeEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, D> RelativeEq<Point<N, D>> for Point<N, D> where
N: Scalar + RelativeEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]pub fn default_max_relative(
) -> <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon
[src]
) -> <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon
pub fn relative_eq(
&self,
other: &Point<N, D>,
epsilon: <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon,
max_relative: <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon
) -> bool
[src]
&self,
other: &Point<N, D>,
epsilon: <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon,
max_relative: <Point<N, D> as AbsDiffEq<Point<N, D>>>::Epsilon
) -> bool
pub fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
impl<N, D> Serialize for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Serialize,
[src]
impl<N, D> Serialize for Point<N, D> where
N: Scalar,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<DefaultAllocator as Allocator<N, D, U1>>::Buffer: Serialize,
[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl<N, D> SimdValue for Point<N, D> where
N: Scalar + SimdValue,
D: DimName,
<N as SimdValue>::Element: Scalar,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
[src]
impl<N, D> SimdValue for Point<N, D> where
N: Scalar + SimdValue,
D: DimName,
<N as SimdValue>::Element: Scalar,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<<N as SimdValue>::Element, D, U1>,
[src]type Element = Point<<N as SimdValue>::Element, D>
The type of the elements of each lane of this SIMD value.
type SimdBool = <N as SimdValue>::SimdBool
Type of the result of comparing two SIMD values like self
.
pub fn lanes() -> usize
[src]
pub fn splat(val: <Point<N, D> as SimdValue>::Element) -> Point<N, D>
[src]
pub fn extract(&self, i: usize) -> <Point<N, D> as SimdValue>::Element
[src]
pub unsafe fn extract_unchecked(
&self,
i: usize
) -> <Point<N, D> as SimdValue>::Element
[src]
&self,
i: usize
) -> <Point<N, D> as SimdValue>::Element
pub fn replace(&mut self, i: usize, val: <Point<N, D> as SimdValue>::Element)
[src]
pub unsafe fn replace_unchecked(
&mut self,
i: usize,
val: <Point<N, D> as SimdValue>::Element
)
[src]
&mut self,
i: usize,
val: <Point<N, D> as SimdValue>::Element
)
pub fn select(
self,
cond: <Point<N, D> as SimdValue>::SimdBool,
other: Point<N, D>
) -> Point<N, D>
[src]
self,
cond: <Point<N, D> as SimdValue>::SimdBool,
other: Point<N, D>
) -> Point<N, D>
pub fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Self where
Self: Clone,
Self: Clone,
pub fn zip_map_lanes(
self,
b: Self,
f: impl Fn(Self::Element, Self::Element) -> Self::Element
) -> Self where
Self: Clone,
self,
b: Self,
f: impl Fn(Self::Element, Self::Element) -> Self::Element
) -> Self where
Self: Clone,
impl<'a, 'b, N, D1, D2, SB> Sub<&'b Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<'a, 'b, N, D1, D2, SB> Sub<&'b Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<'b, N, D1, D2, SB> Sub<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<'b, N, D1, D2, SB> Sub<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<'a, 'b, N, D> Sub<&'b Point<N, D>> for &'a Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]
impl<'a, 'b, N, D> Sub<&'b Point<N, D>> for &'a Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]type Output = Matrix<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, U1, <DefaultAllocator as Allocator<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, <ShapeConstraint as SameNumberOfColumns<U1, U1>>::Representative>>::Buffer>
The resulting type after applying the -
operator.
pub fn sub(
self,
right: &'b Point<N, D>
) -> <&'a Point<N, D> as Sub<&'b Point<N, D>>>::Output
[src]
self,
right: &'b Point<N, D>
) -> <&'a Point<N, D> as Sub<&'b Point<N, D>>>::Output
impl<'b, N, D> Sub<&'b Point<N, D>> for Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]
impl<'b, N, D> Sub<&'b Point<N, D>> for Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]type Output = Matrix<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, U1, <DefaultAllocator as Allocator<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, <ShapeConstraint as SameNumberOfColumns<U1, U1>>::Representative>>::Buffer>
The resulting type after applying the -
operator.
pub fn sub(
self,
right: &'b Point<N, D>
) -> <Point<N, D> as Sub<&'b Point<N, D>>>::Output
[src]
self,
right: &'b Point<N, D>
) -> <Point<N, D> as Sub<&'b Point<N, D>>>::Output
impl<'a, N, D1, D2, SB> Sub<Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<'a, N, D1, D2, SB> Sub<Matrix<N, D2, U1, SB>> for &'a Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<N, D1, D2, SB> Sub<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]
impl<N, D1, D2, SB> Sub<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
DefaultAllocator: Allocator<N, D2, U1>,
DefaultAllocator: SameShapeAllocator<N, D1, U1, D2, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
<ShapeConstraint as SameNumberOfRows<D1, D2>>::Representative == D1,
[src]impl<N, D> Sub<Point<N, D>> for Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]
impl<N, D> Sub<Point<N, D>> for Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]type Output = Matrix<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, U1, <DefaultAllocator as Allocator<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, <ShapeConstraint as SameNumberOfColumns<U1, U1>>::Representative>>::Buffer>
The resulting type after applying the -
operator.
pub fn sub(
self,
right: Point<N, D>
) -> <Point<N, D> as Sub<Point<N, D>>>::Output
[src]
self,
right: Point<N, D>
) -> <Point<N, D> as Sub<Point<N, D>>>::Output
impl<'a, N, D> Sub<Point<N, D>> for &'a Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]
impl<'a, N, D> Sub<Point<N, D>> for &'a Point<N, D> where
N: Scalar + ClosedSub<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: Allocator<N, D, U1>,
DefaultAllocator: SameShapeAllocator<N, D, U1, D, U1>,
ShapeConstraint: SameNumberOfRows<D, D>,
ShapeConstraint: SameNumberOfColumns<U1, U1>,
[src]type Output = Matrix<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, U1, <DefaultAllocator as Allocator<N, <ShapeConstraint as SameNumberOfRows<D, D>>::Representative, <ShapeConstraint as SameNumberOfColumns<U1, U1>>::Representative>>::Buffer>
The resulting type after applying the -
operator.
pub fn sub(
self,
right: Point<N, D>
) -> <&'a Point<N, D> as Sub<Point<N, D>>>::Output
[src]
self,
right: Point<N, D>
) -> <&'a Point<N, D> as Sub<Point<N, D>>>::Output
impl<'b, N, D1, D2, SB> SubAssign<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]
impl<'b, N, D1, D2, SB> SubAssign<&'b Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]pub fn sub_assign(&mut self, right: &'b Matrix<N, D2, U1, SB>)
[src]
impl<N, D1, D2, SB> SubAssign<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]
impl<N, D1, D2, SB> SubAssign<Matrix<N, D2, U1, SB>> for Point<N, D1> where
N: Scalar + ClosedSub<N>,
D1: DimName,
D2: Dim,
SB: Storage<N, D2, U1>,
DefaultAllocator: Allocator<N, D1, U1>,
ShapeConstraint: SameNumberOfRows<D1, D2>,
[src]pub fn sub_assign(&mut self, right: Matrix<N, D2, U1, SB>)
[src]
impl<N1, N2, D> SubsetOf<Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>> for Point<N1, D> where
D: DimNameAdd<U1>,
N1: Scalar,
N2: Scalar + Zero + One + ClosedDiv<N2> + SupersetOf<N1>,
DefaultAllocator: Allocator<N1, D, U1>,
DefaultAllocator: Allocator<N1, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N2, D, U1>,
[src]
impl<N1, N2, D> SubsetOf<Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>> for Point<N1, D> where
D: DimNameAdd<U1>,
N1: Scalar,
N2: Scalar + Zero + One + ClosedDiv<N2> + SupersetOf<N1>,
DefaultAllocator: Allocator<N1, D, U1>,
DefaultAllocator: Allocator<N1, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>,
DefaultAllocator: Allocator<N2, D, U1>,
[src]pub fn to_superset(
&self
) -> Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
[src]
&self
) -> Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
pub fn is_in_subset(
v: &Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
) -> bool
[src]
v: &Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
) -> bool
pub fn from_superset_unchecked(
v: &Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
) -> Point<N1, D>
[src]
v: &Matrix<N2, <D as DimNameAdd<U1>>::Output, U1, <DefaultAllocator as Allocator<N2, <D as DimNameAdd<U1>>::Output, U1>>::Buffer>
) -> Point<N1, D>
pub fn from_superset(element: &T) -> Option<Self>
impl<N1, N2, D> SubsetOf<Point<N2, D>> for Point<N1, D> where
D: DimName,
N1: Scalar,
N2: Scalar + SupersetOf<N1>,
DefaultAllocator: Allocator<N2, D, U1>,
DefaultAllocator: Allocator<N1, D, U1>,
[src]
impl<N1, N2, D> SubsetOf<Point<N2, D>> for Point<N1, D> where
D: DimName,
N1: Scalar,
N2: Scalar + SupersetOf<N1>,
DefaultAllocator: Allocator<N2, D, U1>,
DefaultAllocator: Allocator<N1, D, U1>,
[src]pub fn to_superset(&self) -> Point<N2, D>
[src]
pub fn is_in_subset(m: &Point<N2, D>) -> bool
[src]
pub fn from_superset_unchecked(m: &Point<N2, D>) -> Point<N1, D>
[src]
pub fn from_superset(element: &T) -> Option<Self>
Auto Trait Implementations
impl<N, D> !RefUnwindSafe for Point<N, D>
impl<N, D> !RefUnwindSafe for Point<N, D>
impl<N, D> !UnwindSafe for Point<N, D>
impl<N, D> !UnwindSafe for Point<N, D>
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SimdPartialOrd for T where
T: SimdValue<Element = T, SimdBool = bool> + PartialOrd<T>,
impl<T> SimdPartialOrd for T where
T: SimdValue<Element = T, SimdBool = bool> + PartialOrd<T>,
pub fn simd_gt(self, other: T) -> <T as SimdValue>::SimdBool
pub fn simd_lt(self, other: T) -> <T as SimdValue>::SimdBool
pub fn simd_ge(self, other: T) -> <T as SimdValue>::SimdBool
pub fn simd_le(self, other: T) -> <T as SimdValue>::SimdBool
pub fn simd_eq(self, other: T) -> <T as SimdValue>::SimdBool
pub fn simd_ne(self, other: T) -> <T as SimdValue>::SimdBool
pub fn simd_max(self, other: T) -> T
pub fn simd_min(self, other: T) -> T
pub fn simd_clamp(self, min: T, max: T) -> T
pub fn simd_horizontal_min(self) -> <T as SimdValue>::Element
pub fn simd_horizontal_max(self) -> <T as SimdValue>::Element
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,